Class: RVM::Languages::MathLanguage

Inherits:
Language
  • Object
show all
Includes:
Math
Defined in:
lib/rvm/languages/math.rb

Overview

See the Math module for a description of this compiler.

Instance Method Summary collapse

Methods inherited from Language

compile, register_for

Methods included from Plugin

#helper, #included, #plugin_host, #plugin_id, #register_for

Instance Method Details

#compile(text) ⇒ Object



27
28
29
# File 'lib/rvm/languages/math.rb', line 27

def compile text
  Compiler.compile(Tree.generate(Tokenizer.tokenize(text)))
end