diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-06 21:18:04 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-06 21:19:45 -0500 |
| commit | 0dd893225bebffd9a25f1345ec49922aa961b882 (patch) | |
| tree | e843cef529e0e1d6cdba85c2268742e3aed68749 /compiler/codegen.cup | |
| parent | Add some information to the README (diff) | |
| download | cup-0dd893225bebffd9a25f1345ec49922aa961b882.tar.xz cup-0dd893225bebffd9a25f1345ec49922aa961b882.zip | |
[C]: Add `here` keyword that evaluates to a string with it's location
It's not really a keyword like the other ones, but just handled
completely at the lexer level since it already knows the location of the
token, so it injects a string literal instead.
We also use this in the self-hosted compiler now for better error
reporting for where the error happened internally.
Diffstat (limited to 'compiler/codegen.cup')
0 files changed, 0 insertions, 0 deletions