class Malady::Compiler::StringParser
String -> AST
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/malady/compiler.rb, line 79 def initialize(*) super ensure @processor = Malady::Parser.new '(eval)' end
Public Instance Methods
create()
click to toggle source
# File lib/malady/compiler.rb, line 85 def create @parser = @processor end
input(string, name="(eval)", line=1)
click to toggle source
# File lib/malady/compiler.rb, line 89 def input(string, name="(eval)", line=1) @input = string @file = name @line = line end
parse()
click to toggle source
# File lib/malady/compiler.rb, line 95 def parse create.parse_string(@input) end