Module: Malline

Defined in:
lib/malline.rb,
lib/malline/lexer.rb,
lib/malline/parser.rb,
lib/malline/handler.rb,
lib/malline/compiler.rb

Defined Under Namespace

Classes: Compiler, Handler, Lexer, Parser

Class Method Summary collapse

Class Method Details

.run(template, binding) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/malline.rb', line 6

def self.run template, binding
  lex = Lexer.new template
  par = Parser.new lex
  han = par.parse
  com = Compiler.new han.parsed
  template = com.compile
  eval(template, binding)
end