1
0

use char classes where it applies

This commit is contained in:
Arpad Ryszka 2026-06-01 21:43:34 +02:00
parent bfa71e7a73
commit f61ea7dac7
2 changed files with 509 additions and 581 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,9 @@
// Treerack syntax (self)
// whitespace handling:
wschar:alias = " " | "\t" | "\n" | "\b" | "\f" | "\r" | "\v";
wschar:alias = [ \t\n\b\f\r\v];
wsc:ws = wschar | comment;
ws-no-nl:alias:nows = " " | "\t" | "\b" | "\f" | "\r" | "\v";
ws-no-nl:alias:nows = [ \t\b\f\r\v]; // whitespace without newline
// comments:
block-comment:alias:nows = "/*" ("*" [^/] | [^*])* "*/";