Sha256: 539bdba0d893e6281447defa94f8d4d65f9875767df8896fa9304e2de65a902f

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

#!/usr/bin/env ruby

require 'mojikun'

source_code = ARGF.read.chomp

tokens = Mojikun::Lexer.new(source_code).call

ast = Mojikun::Parser.new(tokens).call

runtime = Mojikun::Runtime.new
interpreter = Mojikun::Interpreter.new(runtime)

interpreter.evaluate(ast)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mojikun-1.0.1 bin/mojikun
mojikun-1.0.0 bin/mojikun