git @ Cat's Eye Technologies SixtyPical / eb1974e
Vector tables can be parsed. Chris Pressey 3 years ago
2 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
123123 return TYPE_WORD
124124 elif self.scanner.consume('vector'):
125125 (inputs, outputs, trashes) = self.constraints()
126 return VectorType(inputs=inputs, outputs=outputs, trashes=trashes)
126 type_ = VectorType(inputs=inputs, outputs=outputs, trashes=trashes)
127 if self.scanner.consume('table'):
128 size = self.defn_size()
129 type_ = TableType(type_, size)
130 return type_
127131 elif self.scanner.consume('buffer'):
128132 size = self.defn_size()
129133 return BufferType(size)
134134
135135 | byte byt
136136 | word wor
137 | vector vec
137 | vector trashes a vec
138138 | byte table[256] tab
139139 | word table[256] wtab
140 | vector trashes a table[256] vtab
140141 | buffer[2048] buf
141142 | pointer ptr
142143 |