Method: Crokus::Parser#array_or_struct_init
- Defined in:
- lib/crokus/parser.rb
#array_or_struct_init ⇒ Object
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/crokus/parser.rb', line 1090 def array_or_struct_init indent "array_or_struct_init" expect :lbrace elements=[] while !showNext.is? :rbrace elements << (e=expression) if showNext.is? :comma acceptIt end end expect :rbrace dedent return ArrayOrStructInit.new(elements) end |