This commit is contained in:
2025-11-23 08:29:37 +01:00
parent 01639853ce
commit 4402cba8ac
8 changed files with 198 additions and 42 deletions

View File

@@ -0,0 +1,27 @@
module codegenerator
@[params]
pub struct GeneratorOptions {
pub:
parser_path string @[required]
output_dir string @[required]
recursive bool = true
format bool = true
}
pub fn new(args GeneratorOptions) !CodeGenerator {
import incubaid.herolib.core.codeparser
mut parser := codeparser.new(
path: args.parser_path
recursive: args.recursive
)!
parser.parse()!
return CodeGenerator{
parser: parser
output_dir: args.output_dir
format: args.format
}
}