diff options
| author | mryouse | 2023-05-28 02:03:03 +0000 |
|---|---|---|
| committer | mryouse | 2023-05-28 02:03:03 +0000 |
| commit | 919994fd3224b6e3cb3e1ce534ae335cecd97f52 (patch) | |
| tree | 6b7320ff5248f7f9b3c77355838acb27d340e588 | |
| parent | 8bd6a9ec0b3b743d7479cd98677e92876dbccc4d (diff) | |
consume types but throw away (for now)
| -rw-r--r-- | parser.d | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -700,6 +700,14 @@ class Parser { case '(': advance(); // go past the open paren return parseCons(); + case ':': + // skipping types for now, so consume/print/throw away + char[] typ; + while (peekable() && !isBoundary(peek())) { + typ ~= advance(); + } + writefln("received (but ignoring) type %s on line %d", to!string(typ), line); + return parseForm(); default: return parseSymbol(); } |
