Skip to content

Commit

Permalink
fixed coalesce operator not being lexed
Browse files Browse the repository at this point in the history
  • Loading branch information
osimon8 committed Mar 30, 2022
1 parent 20b5a2d commit 96c3f0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion combc.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.2.8"
version: "0.2.9"
synopsis: "C-style language that compiles to Factorio combinators"
maintainer: ["Owen Simon <osimon922@gmail.com>"]
authors: ["Owen Simon <osimon922@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(lang dune 3.0)
(using menhir 2.1)
(name combc)
(version 0.2.8)
(version 0.2.9)
(license "GPL-3.0")
(authors "Owen Simon <osimon922@gmail.com>")
(maintainers "Owen Simon <osimon922@gmail.com>")
Expand Down
2 changes: 2 additions & 0 deletions src/parser/lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
( "!=", NEQ);
( "!==", LNEQ);
( "===", LEQ);
("??", COALESCE);
( "&", AND);
( "|", OR);
( "^", XOR);
Expand Down Expand Up @@ -113,6 +114,7 @@ rule token = parse
| '}'
| '+'
| '-'
| "??"
| "**"
| '*'
| '/'
Expand Down

0 comments on commit 96c3f0b

Please sign in to comment.