lib/gisele/language.rb in gisele-0.2.0 vs lib/gisele/language.rb in gisele-0.3.0

- old
+ new

@@ -1,10 +1,32 @@ module Gisele module Language + require 'yaml' DOT_ATTRIBUTES = YAML.load_file(Path.dir/"language/dot.yml") + RESERVED_WORDS = [ + "if", + "else", + "elsif", + "when", + "while", + "seq", + "par", + "task", + "refinement", + "fluent", + "trackvar", + "initially", + "end", + "not", + "or", + "and", + "true", + "false" + ] + def rule2mod(rule) rule.to_s.gsub(/(^|_)([a-z])/){|x| $2.capitalize}.to_sym end module_function :rule2mod @@ -16,8 +38,10 @@ end # module Language end # module Gisele require_relative 'language/syntax' require_relative 'language/ast' -require_relative 'language/transformer' +require_relative 'language/rewriter' +require_relative 'language/elsif_flattener' +require_relative 'language/if_to_case' require_relative 'language/sugar_removal' require_relative 'language/to_graph' \ No newline at end of file