packages feed

antlr-haskell-0.1.0.1: test/coreg4/G4.hs

{-# LANGUAGE QuasiQuotes, DeriveAnyClass, DeriveGeneric, TypeFamilies
    , DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances
    , FlexibleInstances, UndecidableInstances, FlexibleContexts, DeriveDataTypeable #-}
module G4 where
import Language.ANTLR4

[g4|
  grammar G4Basic;
  exp : '1'
      | '2'
      | '3'
      ;
|]