Sha256: e58559664ced94ed0580ff0a890f39e5ba4a3c0cc41e66f2c45cfd92b9cec1f7
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 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, name, init, term, initval] end end # module TrackvarDef end # module Syntax end # module Language end # module Gisele
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gisele-0.3.0 | lib/gisele/language/syntax/trackvar_def.rb |
gisele-0.2.0 | lib/gisele/language/syntax/trackvar_def.rb |
gisele-0.1.0 | lib/gisele/language/syntax/trackvar_def.rb |