Implement assign and set commands, improve output format
This commit is contained in:
@@ -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?: '"'|"'"
|
||||
|
||||
Reference in New Issue
Block a user