Parser no longer skips token after an argument level phrase
This commit is contained in:
parent
f592e1cc43
commit
257d22b6f7
@ -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 (
|
||||
|
@ -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" }
|
||||
|
@ -98,7 +98,7 @@ const (
|
||||
// [name argument]
|
||||
// [name argument argument]
|
||||
// etc...
|
||||
ArgumentKindPhrase = iota
|
||||
ArgumentKindPhrase
|
||||
|
||||
// {name}
|
||||
ArgumentKindDereference
|
||||
|
Reference in New Issue
Block a user