summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
authorKathy Gray2013-09-26 12:11:25 -0400
committerKathy Gray2013-09-26 12:11:25 -0400
commit7841e635dec210e2dfc011df8e3c53d05d76141c (patch)
tree148df128e160b7c2a512e388281f0e2c85a62308 /src/parser.mly
parentb4e24ef7e0e559c0705e626e7fed53b9f2224c0b (diff)
Adding undefined
Also interpreter now supports reading and writing of basic registers (i.e with no subranges yet)
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.mly b/src/parser.mly
index 1d4b7a0e..e4bcfb05 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -122,7 +122,7 @@ let star = "*"
%token And As Bits By Case Clause Const Default Dec Effect Effects End Enumerate Else False
%token Forall Foreach Function_ If_ In IN Inc Let_ Member Nat Order Pure Rec Register
-%token Scattered Struct Switch Then True Type TYPE Typedef Union With Val
+%token Scattered Struct Switch Then True Type TYPE Typedef Undefined Union With Val
/* Avoid shift/reduce conflict - see right_atomic_exp rule */
%nonassoc Then
@@ -376,6 +376,8 @@ lit:
{ lloc (L_bin $1) }
| Hex
{ lloc (L_hex $1) }
+ | Undefined
+ { lloc L_undef }
atomic_pat: