diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-07-18 16:41:02 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:28 -0400 |
commit | e5a7482b54f0840d4b9fe37488020410cd67a684 (patch) | |
tree | 4d1132b650aa4f44f90f6bbaf1234c859715b5bf /lisc/parse.c | |
parent | c16532b9b0e1dc2678d764f4a655cfb8002cdf44 (diff) | |
download | roux-e5a7482b54f0840d4b9fe37488020410cd67a684.tar.gz |
rename mod to rem
Diffstat (limited to 'lisc/parse.c')
-rw-r--r-- | lisc/parse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisc/parse.c b/lisc/parse.c index 7a9da59..6f5a030 100644 --- a/lisc/parse.c +++ b/lisc/parse.c @@ -13,7 +13,7 @@ OpDesc opdesc[OLast] = { [OAdd] = { 2, 1, "add" }, [OSub] = { 2, 0, "sub" }, [ODiv] = { 2, 0, "div" }, - [OMod] = { 2, 0, "mod" }, + [ORem] = { 2, 0, "mod" }, [OCopy] = { 1, 0, "copy" }, }; @@ -31,7 +31,7 @@ typedef enum { TAdd, TSub, TDiv, - TMod, + TRem, TPhi, TJmp, TJez, @@ -97,7 +97,7 @@ lex() { "add", TAdd }, { "sub", TSub }, { "div", TDiv }, - { "mod", TMod }, + { "rem", TRem }, { "phi", TPhi }, { "jmp", TJmp }, { "jez", TJez }, @@ -372,8 +372,8 @@ parseline(PState ps) case TDiv: op = ODiv; break; - case TMod: - op = OMod; + case TRem: + op = ORem; break; case TPhi: if (ps != PPhi) |