Module: Gisele::Language

Defined in:
lib/gisele/language.rb,
lib/gisele-language/version.rb,
lib/gisele/language/ast/node.rb,
lib/gisele/language/ast/if_st.rb,
lib/gisele/language/ast/bool_or.rb,
lib/gisele/language/ast/case_st.rb,
lib/gisele/language/ast/var_ref.rb,
lib/gisele/language/syntax/node.rb,
lib/gisele/language/ast/bool_and.rb,
lib/gisele/language/ast/bool_not.rb,
lib/gisele/language/ast/task_def.rb,
lib/gisele/language/ast/while_st.rb,
lib/gisele/language/syntax/if_st.rb,
lib/gisele/language/ast/bool_expr.rb,
lib/gisele/language/syntax/par_st.rb,
lib/gisele/language/syntax/seq_st.rb,
lib/gisele/language/syntax/bool_or.rb,
lib/gisele/language/syntax/case_st.rb,
lib/gisele/language/syntax/st_list.rb,
lib/gisele/language/syntax/var_ref.rb,
lib/gisele/language/ast/else_clause.rb,
lib/gisele/language/ast/when_clause.rb,
lib/gisele/language/syntax/bool_and.rb,
lib/gisele/language/syntax/bool_lit.rb,
lib/gisele/language/syntax/bool_not.rb,
lib/gisele/language/syntax/task_def.rb,
lib/gisele/language/syntax/unit_def.rb,
lib/gisele/language/syntax/while_st.rb,
lib/gisele/language/ast/elsif_clause.rb,
lib/gisele/language/ast/task_call_st.rb,
lib/gisele/language/syntax/bool_expr.rb,
lib/gisele/language/syntax/event_set.rb,
lib/gisele/language/syntax/bool_paren.rb,
lib/gisele/language/syntax/fluent_def.rb,
lib/gisele/language/syntax/else_clause.rb,
lib/gisele/language/syntax/when_clause.rb,
lib/gisele/language/syntax/elsif_clause.rb,
lib/gisele/language/syntax/task_call_st.rb,
lib/gisele/language/syntax/trackvar_def.rb,
lib/gisele/language/processors/if_to_case.rb,
lib/gisele/language/syntax/implicit_seq_st.rb,
lib/gisele/language/processors/sugar_removal.rb,
lib/gisele/language/processors/scoping_helper.rb,
lib/gisele/language/processors/elsif_flattener.rb

Defined Under Namespace

Modules: AST, Syntax, Version Classes: ElsifFlattener, IfToCase, ScopingHelper, SugarRemoval

Constant Summary collapse

VERSION =
Version.to_s

Instance Method Summary collapse

Instance Method Details

#default_tagging_moduleObject

The tagging function (from s-expr kind to AST module) is not complete so far. This allows us to at least include the AST:Node module in all s-expressions.



26
27
28
# File 'lib/gisele/language.rb', line 26

def default_tagging_module
  AST::Node
end

#tagging_referenceObject

By default, Sexpr will find for abstract nodes under Language itself. We override that behavior here and let it know that the AST module is the parent of all ast nodes.



20
21
22
# File 'lib/gisele/language.rb', line 20

def tagging_reference
  AST
end