diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-10-22 19:37:45 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-10-22 19:37:45 -0600 |
| commit | 977758cb8c968a9b371fdddbadf456e92107d11c (patch) | |
| tree | 975ba34b97a98cffcee37d8d933f2b2d3ecc9471 /src/Language/Fiddle/Parser.hs | |
| parent | 0a0f200a79a9e78b97addda6bd8e879d8c1c5d3e (diff) | |
| download | fiddle-977758cb8c968a9b371fdddbadf456e92107d11c.tar.gz fiddle-977758cb8c968a9b371fdddbadf456e92107d11c.tar.bz2 fiddle-977758cb8c968a9b371fdddbadf456e92107d11c.zip | |
Implement bitfield arrays.
Diffstat (limited to 'src/Language/Fiddle/Parser.hs')
| -rw-r--r-- | src/Language/Fiddle/Parser.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Language/Fiddle/Parser.hs b/src/Language/Fiddle/Parser.hs index ad96724..066fd2e 100644 --- a/src/Language/Fiddle/Parser.hs +++ b/src/Language/Fiddle/Parser.hs @@ -315,7 +315,7 @@ enumConstantDeclP :: Pa EnumConstantDecl enumConstantDeclP = withMeta $ (tok KWReserved >> EnumConstantReserved <$> (tok TokEq >> expressionP)) - <|> (EnumConstantDecl <$> ident <*> (tok TokEq >> expressionP)) + <|> (EnumConstantDecl <$> ident <*> (tok TokEq >> constExpressionP)) constExpressionP :: Pa (ConstExpression u) constExpressionP = withMeta $ ConstExpression . RightV <$> expressionP |