language-c99 0.1.3 → 0.2.0
raw patch · 4 files changed
+10/−6 lines, 4 files
Files
- ChangeLog.md +4/−0
- language-c99.cabal +1/−1
- src/Language/C99/AST.hs +3/−3
- src/Language/C99/Pretty.hs +2/−2
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for language-c99 +## 0.2.0 -- 2022-05-21++* Renamed InitArray to InitList.+ ## 0.1.3 -- 2021-09-13 * Fixed a bug where I and J where swapped in the pretty printer. (Thanks to
language-c99.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: language-c99-version: 0.1.3+version: 0.2.0 synopsis: An implementation of the C99 AST that strictly follows the standard. description:
src/Language/C99/AST.hs view
@@ -545,9 +545,9 @@ data TypedefName = TypedefName Ident {- 6.7.8 -}-data Init = InitExpr AssignExpr- | InitArray InitList- -- We omit the specific case of InitArray ending with ,+data Init = InitExpr AssignExpr+ | InitList InitList+ -- We omit the specific case of InitList ending with , data InitList = InitBase (Maybe Design) Init | InitCons InitList (Maybe Design) Init
src/Language/C99/Pretty.hs view
@@ -572,8 +572,8 @@ {- 6.7.8 -} instance Pretty Init where- pretty (InitExpr ae) = pretty ae- pretty (InitArray il) = braces (pretty il)+ pretty (InitExpr ae) = pretty ae+ pretty (InitList il) = braces (pretty il) instance Pretty InitList where pretty (InitBase md i) = pretty md <+> pretty i