Parser no longer skips token after an argument level phrase

This commit is contained in:
Sasha Koshka 2022-09-03 12:54:41 -04:00
parent f592e1cc43
commit 257d22b6f7
3 changed files with 1 additions and 3 deletions

View File

@ -81,7 +81,6 @@ func (parser *ParsingOperation) parseArgument () (argument Argument, err error)
case lexer.TokenKindLBracket:
argument.kind = ArgumentKindPhrase
argument.value, err = parser.parseArgumentLevelPhrase()
parser.nextToken()
default:
panic (

View File

@ -291,7 +291,6 @@ func (argument *Argument) ToString (indent int, breakLine bool) (output string)
stringValue = "^"
case lexer.TokenKindBinaryXorAssignment:
stringValue = "^="
}
output += doIndent(indent, stringValue)
if breakLine { output += "\n" }

View File

@ -98,7 +98,7 @@ const (
// [name argument]
// [name argument argument]
// etc...
ArgumentKindPhrase = iota
ArgumentKindPhrase
// {name}
ArgumentKindDereference