Implement assign and set commands, improve output format

This commit is contained in:
2026-03-02 23:03:36 -06:00
parent 67901fa91f
commit f778507f39
7 changed files with 127 additions and 8 deletions

View File

@@ -17,6 +17,9 @@ const LITERAL_MAP: Record<string, string> = {
's': ' ',
}
export const tokenIsLVal = (input: LexInput): boolean =>
!input.literal && !!input.value.match(/^\$[a-zA-Z0-9_]+$/)
export class Lexer extends BehaviorSubject<LexToken> {
private isEscape: boolean = false
private inQuote?: '"'|"'"