namechange
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
### Ast
|
||||
|
||||
The Ast (abstract syntax tree) is created by kide-reader gem and the classes defined there
|
||||
The Ast (abstract syntax tree) is created by salama-reader gem and the classes defined there
|
||||
|
||||
### Compiling
|
||||
|
||||
|
@ -7,7 +7,7 @@ module Ast
|
||||
context.current_class = clazz
|
||||
expressions.each do |expression|
|
||||
# check if it's a function definition and add
|
||||
# if not, execute it, but that does means we should be in kide (executable), not ruby. ie throw an error for now
|
||||
# if not, execute it, but that does means we should be in salama (executable), not ruby. ie throw an error for now
|
||||
raise "only functions for now #{expression.inspect}" unless expression.is_a? Ast::FunctionExpression
|
||||
puts "compiling expression #{expression}"
|
||||
expression_value = expression.compile(context )
|
||||
|
Reference in New Issue
Block a user