language-c-quote

C/CUDA/OpenCL/Objective-C quasiquoting library.

https://github.com/mainland/language-c-quote

Version on this page:0.13.0.1
LTS Haskell 22.37:0.13.0.2
Stackage Nightly 2024-10-11:0.13.0.2
Latest on Hackage:0.13.0.2

See all snapshots language-c-quote appears in

BSD-3-Clause licensed and maintained by Geoffrey Mainland
This version can be pinned in stack with:language-c-quote-0.13.0.1@sha256:bbefdb08217d0f0c69d92c2f99aff5878a1dc6c64ba075c9298a036fdf20b6bb,3803

This package provides a general parser for the C language, including most GCC extensions and some CUDA and OpenCL extensions as well as the entire Objective-C language.

Changes

0.13 - 2021-04-29

Added

  • Add quotation support for attributes (Richard Marko)
  • Add ranges to case labels as a GCC extension (Mark Barbone)

Fixed

  • #81 Missing braces cause dangling-else

Changed

  • Remove dependency on symbol package.

0.12.2.1 - 2019-10-04

Added

  • Support for GHC 8.8.1.

0.12.2 - 2018-04-02

Added

  • Support for GHC 8.4.1.

Fixed

  • #76 C-style comments in cunit declarations

0.12.1 - 2017-07-25

Fixed

  • #75 ObjC needs blocks and GCC extension

0.12 - 2017-05-05

Fixed

  • Test with GHC 8.2.1.
  • Bump various bounds.
  • #71 Bad char literal output
  • #69 The antiquoter for double and float does not handle infinity correctly

0.11.7.3 - 2017-03-10

Fixed

  • Bump other mainland-pretty upper bound.

0.11.7.2 - 2017-03-05

Fixed

  • Bump mainland-pretty upper bound.

0.11.7.1 - 2016-12-05

Fixed

  • Bump HUnit upper bound.

0.11.7 - 2016-10-03

Fixed

  • Fix compatibility with haskell-src-meta 0.7.0.

0.11.6.3 - 2016-08-30

Fixed

  • Fix alignment of pretty-printed comments.

0.11.6.2 - 2016-05-18

Fixed

  • #68 Cannot create block consisting of a single statements antiquote

0.11.6.1 - 2016-05-10

Added

  • Bump syb upper bound for GHC 8.0.1 compatibility.

0.11.6 - 2016-04-12

Added

  • Add support for type qualifier escapes.

0.11.5.1 - 2016-04-07

Fixed

  • Try to be -Wparentheses clean.
  • Fix pretty-pretty of dangling else.
  • Add missing test modules to tarball.

0.11.5 - 2016-03-30

Added

  • Added ToConst and ToExp instances for Int/Word types (Emil Axelsson)
  • Expression and statement raw string escapes (Kosyrev Serge)
  • Partial support for C++11 lambda expressions in CUDA code (Michał Wawrzyniec Urbańczyk)

Fixed

  • #64 Negated negative constants do not correctly pretty-print.
  • #59 No obvious way to generate macro code – not even through $esc:(… :: String)
  • #51 Objective-C anti-quotations for interface decls broken

0.11.4 - 2015-12-22

Added

  • Conditionally use the lightweight haskell-exp-parser instead of haskell-src-meta.

Fixed

  • #57 language-c-quote-0.11.3 does not compile with alex 3.1.5

0.11.3 - 2015-10-14

Added

  • IsString instances for Id and StringLit data types.

Fixed

  • #55 Comments at the top of a block before a declaration.

0.11.2.1 - 2015-10-06

Added

  • Type qualifiers are now allowed before an antiquoted type.

0.11.2 - 2015-09-29

Added

  • qqPat and qqExp are now exposed.

Changed

  • Bump upper bound on syb.
  • Providing a starting position is now optional when parsing.

0.11.1 - 2015-09-29

Added

  • Automatically-generated Relocatable instances added for C abstract syntax types.

Changed

  • Located instances are also now automatically generated.