Method: Crokus::Parser#arrayed?
- Defined in:
- lib/crokus/parser.rb
#arrayed?(type) ⇒ Boolean
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 |
# File 'lib/crokus/parser.rb', line 436 def arrayed?(type) return if tokens.empty? while showNext.is? :lbrack acceptIt if showNext.is? :rbrack acceptIt type=ArrayOf.new(type,IntLit.new(ZERO)) else e=expression type=ArrayOf.new(type,e) expect :rbrack end end return type end |