()
| 425 | |
| 426 | // Parse a type-or-null |
| 427 | private Type type() { |
| 428 | int old = _lexer._position; |
| 429 | String tname = _lexer.matchId(); |
| 430 | if( tname==null ) return null; |
| 431 | if( tname.equals("int") ) return TypeInteger.BOT; |
| 432 | TypeStruct obj = OBJS.get(tname); |
| 433 | if( obj != null ) |
| 434 | return TypeMemPtr.make(obj,match("?")); |
| 435 | // Not a type; unwind the parse |
| 436 | _lexer._position = old; |
| 437 | return null; |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * Parses a declStatement |