Skip to content

Commit 8ed856a

Browse files
committed
more robust JS preprocessor
The patch is a complete rework of JS preprocessing with stricter syntax validation. It also adds support for more expressive preprocessor directives like the following: #include "foobar.js" #if !(VAR1 /* comment */ && VAR2 >= 2) #elif !VAR3 || VAR4 != "four" // comment #else #endif The directives are parsed according to an LL(1) grammar, using a stack for syntax-directed translation.
1 parent 38bc6ed commit 8ed856a

File tree

1 file changed

+804
-59
lines changed

1 file changed

+804
-59
lines changed

0 commit comments

Comments
 (0)