tested lexer with more files

This commit is contained in:
Partho Bhattacharya
2025-02-13 20:24:39 -05:00
parent 52a7c69dae
commit 292a8dbf8d
13 changed files with 1 additions and 2720 deletions

View File

@ -16,7 +16,7 @@
COM ([^*]|\*+[^)*])*
ID [A-Za-z_][0-9A-Za-z_]*
DIGIT [0-9]
CHAR \\n|\\t|\\'|[^'\n\t\\]
CHAR \\n|\\t|\\'|[^'\n\t\\]|\\\\
/* char can be a newline, tab, an escaped quote, or anything but a single quote, an actual line break, an actual tab, or a backslash by itself (to prevent confusion from escaped quote */
SCHAR \\n|\\t|\\\"|[^\"\n\\]
/* similar to above, a string Char (SCHAR) is the same as a CHAR except we cannot have double quotes instead of single quotes. Double quotes need to be escaped in Flex unlike single quotes based on documentation */