Sha256: fa61062a066da636b6529dd09952a31c0723390d23ee2e5036129caa8956cfde

Contents?: true

Size: 579 Bytes

Versions: 5

Compression:

Stored size: 579 Bytes

Contents

module Gisele
  module Language
    module Syntax
      module TrackvarDef
        include Node

        def _to_ast
          name       = captures[:variable_name].first.strip
          init, term = captures[:event_set].map{|x| x.to_ast}
          term       = [:event_set] unless term
          initval    = captures[:initially_def].first
          initval    = (initval && !initval.empty?) ? initval.value : nil
          [:trackvar_def, name, init, term, initval]
        end

      end # module TrackvarDef
    end # module Syntax
  end # module Language
end # module Gisele

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
gisele-language-0.6.0 lib/gisele/language/syntax/trackvar_def.rb
gisele-language-0.5.1 lib/gisele/language/syntax/trackvar_def.rb
gisele-language-0.5.0 lib/gisele/language/syntax/trackvar_def.rb
gisele-0.5.0 lib/gisele/language/syntax/trackvar_def.rb
gisele-0.4.0 lib/gisele/language/syntax/trackvar_def.rb