aboutsummaryrefslogtreecommitdiff
path: root/compiler/codegen.cup
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-02-06 21:18:04 -0500
committerMustafa Quraish <[email protected]>2022-02-06 21:19:45 -0500
commit0dd893225bebffd9a25f1345ec49922aa961b882 (patch)
treee843cef529e0e1d6cdba85c2268742e3aed68749 /compiler/codegen.cup
parentAdd some information to the README (diff)
downloadcup-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