Mark issues #02 (backtick lexing/parsing), #03 (command execution runtime), and #04 (argv parsing) as resolved. Add new issues for configuration (#08), programmable prompt (#09), and interactive command execution (#10).
852 B
852 B
02 — Complete backtick command lexing and parsing
Status: resolved Blocked by: #01 Blocks: #03
Backtick lexing is partially implemented:
llex.c: TK_COMMAND token lexed viaread_string()on backtickllex.h: TK_COMMAND enum addedlparser.c: TK_COMMAND handled insimpleexp()(as string) andsuffixedexp()(as func args)
Remaining work
- Verify the lexer handles edge cases (escaped backticks, newlines, nested quotes)
- Parser must emit code that produces a result table (
{code, stdout, stderr}) at runtime, not just a string literal - May need a new opcode (e.g.
OP_COMMAND) or compile as a call to a built-in execution function - Add string interpolation inside backticks if decided in #01
Files touched
llex.c/llex.hlparser.c- Possibly
lopcodes.h/lopcodes.cif adding a new opcode