func-section #1

Merged
sashakoshka merged 52 commits from func-section into main 2022-09-04 00:09:14 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit 067729d435 - Show all commits

View File

@ -348,6 +348,17 @@ func (lexer *LexingOperation) tokenizeSymbolBeginning () (err error) {
token.location.SetWidth(2)
}
lexer.addToken(token)
case '^':
token := lexer.newToken()
err = lexer.nextRune()
if err != nil { return }
token.kind = TokenKindBinaryXor
if lexer.char == '=' {
token.kind = TokenKindBinaryXorAssignment
err = lexer.nextRune()
token.location.SetWidth(2)
}
lexer.addToken(token)
default:
err = infoerr.NewError (
lexer.file.Location(1),