aboutsummaryrefslogtreecommitdiff
path: root/spec/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lexer.go')
-rw-r--r--spec/lexer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/lexer.go b/spec/lexer.go
index 54eb13a..943cbf9 100644
--- a/spec/lexer.go
+++ b/spec/lexer.go
@@ -19,6 +19,7 @@ const (
tokenKindID = tokenKind("id")
tokenKindTerminalPattern = tokenKind("terminal pattern")
tokenKindColon = tokenKind(":")
+ tokenKindOr = tokenKind("|")
tokenKindSemicolon = tokenKind(";")
tokenKindEOF = tokenKind("eof")
tokenKindInvalid = tokenKind("invalid")
@@ -128,6 +129,8 @@ func (l *lexer) next() (*token, error) {
}
case "colon":
return newSymbolToken(tokenKindColon), nil
+ case "or":
+ return newSymbolToken(tokenKindOr), nil
case "semicolon":
return newSymbolToken(tokenKindSemicolon), nil
default: