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