Package io.github.protasm.jvmud.compiler.preproc
package io.github.protasm.jvmud.compiler.preproc
Minimal LPC preprocessor.
Handles line splicing, macro expansion, conditional directives, and include resolution while
preserving mappings back to original files via LineMap
and SourceSpan data.
Exposes pluggable IncludeResolver strategies so callers
control filesystem access. Assumes callers manage include search paths and guard against untrusted
input when providing resolvers.
Not responsible for tokenization or parsing; produces expanded source strings and positional mappings for the scanner.
-
ClassDescriptionResult of resolving an include directive.Result of preprocessing: expanded source text with a mapping back to originals.Minimal LPC preprocessor for includes, macro definitions, conditional directives, comment stripping, and line splicing with backslash-newline.Include resolver that searches a configurable list of system include roots.