Method: Astrapi::Parser#parseClass
- Defined in:
- lib/parser.rb
#parseClass ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/parser.rb', line 57 def parseClass indent "parseClass" expect :class name=Identifier.new(expect :identifier) if showNext.is_a? :lt acceptIt inheritance= Identifier.new(expect :identifier) end attrs=[] while showNext.is_a? :attr attrs << parseAttr end expect :end dedent return Astrapi::Klass.new(name,inheritance,attrs) end |