This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- I haven't been able to actually run the program (broken archlinux packages), but it typechecks | |
open import Data.String | |
open import Function | |
open import IO.Primitive | |
Either : Set → Set → Set₁ | |
Either l r = {a : Set} → (l → a) → (r → a) → a | |
Left : { l r : Set } → l → Either l r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE LambdaCase #-} | |
module Freegram where | |
import Bnf | |
import Parser | |
import Control.Applicative.Free.Final | |
import Data.Maybe (catMaybes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE BangPatterns #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
module Tabulata | |
( -- * Types | |
Fields | |
, Range |
NewerOlder