Skip to content

Commit

Permalink
Merge pull request #190 from EpitechPromo2027/184-address-of-confused…
Browse files Browse the repository at this point in the history
…-with-bitand

add: `AddrOf` as `.&`
  • Loading branch information
oriollinan authored Jan 14, 2025
2 parents b769c2f + 977f032 commit 2d01feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ast/Parser/Expr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ parseExpr = CE.makeExprParser (PU.lexeme parseTerm) operationTable
operationTable :: [[CE.Operator PU.Parser AT.Expr]]
operationTable =
[ [ PU.postfix ".*" (`AT.UnaryOp` AT.Deref),
PU.postfix ".&" (`AT.UnaryOp` AT.AddrOf),
PU.postfix "++" (`AT.UnaryOp` AT.PostInc),
PU.postfix "--" (`AT.UnaryOp` AT.PostDec),
parseCall
],
[ PU.prefix "!" (`AT.UnaryOp` AT.Not),
PU.prefix "not" (`AT.UnaryOp` AT.Not),
PU.prefix "~" (`AT.UnaryOp` AT.BitNot),
PU.prefix "&" (`AT.UnaryOp` AT.AddrOf),
PU.prefix "++" (`AT.UnaryOp` AT.PreInc),
PU.prefix "--" (`AT.UnaryOp` AT.PreDec)
],
Expand Down

0 comments on commit 2d01feb

Please sign in to comment.