Method: Parser#Storable
- Defined in:
- lib/parser.rb
#Storable ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/parser.rb', line 73 def Storable() factor = Factor() t = @scan.getToken if t.type == :keyword then if t.lex == "S" then return StoreNode.new(factor) end if t.lex == "M" then return MNode.new(factor) end if t.lex == "P" then return PNode.new(factor) end end @scan.putBackToken factor end |