-
-
Notifications
You must be signed in to change notification settings - Fork 166
Metaprogramming Use Cases
andychu edited this page Oct 3, 2017
·
9 revisions
Back to Metaprogramming -- language mechanisms
-
Matrix of use case vs. metaprogramming technique: https://lobste.rs/s/aqdixr/gentle_introduction_compile_time#c_0cuoc9
-
Oil Startup
-
core/id_kind.py
-- every token/entity in OSH/Oil - Lexer State machine can be frozen
- Lexer regexes can be compiled to gotos (a la re2c)
- OPy parse tables using pgen2 (but not the Oil parser)
- ASDL schema
- Builtin Flags and Help could be frozen
- misc regexes: to validate variable names, etc.
-