Skip to content

Commit

Permalink
fix reg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Dec 5, 2024
1 parent 1a76df9 commit 1266f7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Juvix/Compiler/Reg/Keywords.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ import Juvix.Data.Keyword.All
kwFieldDiv,
kwFieldMul,
kwFieldSub,
kwFieldToInt,
kwIf,
kwIntToField,
kwLe_,
kwLive,
kwLt_,
Expand Down Expand Up @@ -93,5 +95,7 @@ allKeywords =
kwFail,
kwArgsNum,
kwPoseidon,
kwRandomEcPoint
kwRandomEcPoint,
kwIntToField,
kwFieldToInt
]
2 changes: 2 additions & 0 deletions src/Juvix/Compiler/Reg/Translation/FromSource.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ instrUnop ::
instrUnop vref =
parseUnaryOp kwShow OpShow vref
<|> parseUnaryOp kwAtoi OpStrToInt vref
<|> parseUnaryOp kwIntToField OpIntToField vref
<|> parseUnaryOp kwFieldToInt OpFieldToInt vref
<|> parseUnaryOp kwArgsNum OpArgsNum vref

parseUnaryOp ::
Expand Down

0 comments on commit 1266f7a

Please sign in to comment.