aboutsummaryrefslogtreecommitdiff
path: root/scan.c
AgeCommit message (Collapse)Author
2024-04-02map: Use simpler fnv-1a hash functionMichael Forney
2022-01-01Remove dependency on signed integer representationMichael Forney
2021-10-21expr: Add support for UTF-8 character constantsMichael Forney
2021-09-03scan: Improve accuracy of token locationsMichael Forney
The location should not include preceding whitespace and was off by one.
2021-09-02pp: Implement #line directives and gcc line markersMichael Forney
Fixes #66.
2020-03-17token: Add TOTHER for other non-whitespace tokensMichael Forney
This is for any non-whitespace character that doesn't match any other token categories, and could be valid if stringified, or the preprocessor is used by itself.
2020-03-17pp: Add support for macro definition and expansionMichael Forney
The token pasting operator `##` still needs to be implemented.
2020-03-16scan: Keep track of whether tokens had preceeding whitespaceMichael Forney
2020-03-16Allow multiple inputs to main compiler processMichael Forney
This way, we can implement -include in the driver by just passing an additional input to the compiler.
2019-08-13scan: Add `::` operatorMichael Forney
This is needed for attributes, added in C2X (n2335).
2019-05-08scan: Handle EOF in comments, character constants, and string literalsMichael Forney
2019-04-04Merge headers into cc.hMichael Forney
2019-03-12scan: Add support for prefixed string literals and character constantsMichael Forney
2019-03-12scan: Accept leading `.` in pp-numberMichael Forney
2019-02-25Use a stack of scannersMichael Forney
This is necessary to implement the #include directive.
2019-02-24Remove unused fieldMichael Forney
2019-02-24scan: Handle commentsMichael Forney
2019-02-24scan: Handle escaped newlinesMichael Forney
2019-02-12Initial importMichael Forney