aboutsummaryrefslogtreecommitdiff
path: root/scan.c
AgeCommit message (Collapse)Author
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