cookbook-3.0.1.1: Tiered general-purpose libraries with domain-specific applications.

Copyright(c) 2014 by Nate Pisarski
LicenseBSD3
Maintainernathanpisarski@gmail.com
StabilityStable
PortabilityPortable (Cookbook)
Safe HaskellSafe
LanguageHaskell98

Cookbook.Project.Quill2.Q2Parse

Description

Q2Parse is the "engine" of Quill2. It is able to turn a string (or a list of them) into a Quill database. The syntax of Quill currently supports Whitespace-inclusive strings, comments, and whitespace-independence.

Synopsis

Documentation

decomment :: String -> String Source #

Remove all C-style comments frm the code. Does not support single-line comments, because Quill2 is fully whitespace independant.

prepare :: [String] -> String Source #

Prepare the lines of a file for processing.

pTable :: String -> Quill Source #

Process a single entry in the database into a Table.

pFile :: [String] -> [Quill] Source #

Turn the lines of a file into a list of tables, AKA a Database.