Sha256: 3583c59d09c03b739ee1df487210830bc8581877fabc66f8bbf50f86967e7a01
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
#!/usr/bin/env ruby require File.join(File.expand_path(File.dirname(__FILE__)), '/../lib/p-lang') if ARGV[0] @parser = PLangParser.new ast = @parser.parse(File.readlines(ARGV[0]).join("")) if ast vm = PLang::VM.new(ast.build.collect(&:to_sexp)) vm.execute! else puts @parser.failure_reason end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
p-lang-0.1.1 | bin/p-lang |
p-lang-0.1.0 | bin/p-lang |