Sha256: 3681bfcebe664abd2e4f48e6b0f68b39fb12bb500690d7bc66d0f0726854ec63
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
module Minjs # # 14 Program # module Program def source_elements(lex, context, options = {}) prog = [] while !lex.eof? t = source_element(lex, context) if t prog.push(t) else break end end ECMA262::Prog.new(context, prog) end def source_element(lex, context) lex.eval_lit{ statement(lex, context) } or lex.eval_lit{ func_declaration(lex, context) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minjs-0.1.3 | lib/minjs/program.rb |