compiler/stage1_py/l0_cli_commands.py
Module l0_cli_commands
Overview Symbols grouped by source file: compiler/stage1_py/l0_cli_commands.py
Source: compiler/stage1_py/l0_cli_commands.py Language: Python
Module Members
_get_module_names:list[str] l0_cli_commands._get_module_names(argparse.Namespace args, CompilationUnit cu)- Get the list of module names based on the --all-modules flag.cmd_codegen:int l0_cli_commands.cmd_codegen(argparse.Namespace args)- Generate C code for a module.cmd_check:int l0_cli_commands.cmd_check(argparse.Namespace args)- Run analysis and type checking without code generation.cmd_compile:int l0_cli_commands.cmd_compile(argparse.Namespace args)- Report that separate compilation is not implemented in Stage 1 yet.cmd_ast:int l0_cli_commands.cmd_ast(argparse.Namespace args)- Pretty-print the parsed AST._format_token_dump_text:str l0_cli_commands._format_token_dump_text(tok)- Return token payload text for --tok output._dump_tokens_for_file:int l0_cli_commands._dump_tokens_for_file(Path path, bool include_eof)- Dump lexer tokens for a single file.cmd_tok:int l0_cli_commands.cmd_tok(argparse.Namespace args)- Dump lexer tokens.cmd_sym:int l0_cli_commands.cmd_sym(argparse.Namespace args)- Dump module-level symbol tables.cmd_type:int l0_cli_commands.cmd_type(argparse.Namespace args)- Dump resolved type information.