Appearance
| 1 | namespace Lexical is | |
| 2 | use Source | |
| 3 | ||
| 4 | // A piece of non-token source content the parser discards but the | |
| 5 | // formatter must preserve: a comment, or a run of blank lines collapsed | |
| 6 | // to a single marker. The tokenizer collects these in source order so | |
| 7 | // the formatter can interleave them back into the printed AST by | |
| 8 | // comparing locations. | |
| 9 | union TRIVIA(location: LOCATION) is | |
| 10 | LINE_COMMENT(text: string, ..) | |
| 11 | BLOCK_COMMENT(text: string, ..) | |
| 12 | BLANK_LINE(..) | |
| 13 | SHEBANG(text: string, ..) | |
| 14 | si | |
| 15 | si |