Skip to content

Runtime vs generated

Runtime and generated mode are two delivery paths for the same lexer design.

QuestionRuntimeGenerated
Fastest edit/run loop?YesNo regeneration step
Smallest deployed dependency?NoStandalone: yes
Easy to inspect output?Specification and runtimeRuby artifact
Recommended parity check?Source of truthCompare token stream

Use the runtime for development and tests, then generate and compare before deployment. Do not assume a generated file is safe merely because it is generated: actions remain Ruby code.