CSPM-Frontend-0.12.1.0: A CSP-M parser compatible with FDR-2.91

Copyright(c) Fontaine 2008 - 2011
LicenseBSD3
Maintainerfontaine@cs.uni-duesseldorf.de, me@dobrikov.biz
Stabilityexperimental
PortabilityGHC-only
Safe HaskellNone
LanguageHaskell2010

Language.CSPM.Parser

Description

This modules defines a Parser for CSP-M

Synopsis

Documentation

parse :: SourceName -> [Token] -> Either ParseError ModuleFromParser Source #

The parse function parses a List of Token. It returns a ParseError or a Labled Module. The SourceName argument is currently not used.

testParser :: PT a -> [Token] -> Either ParseError a Source #

Wrapper for testing sub parsers

parseExp :: PT LExp Source #

Parser for CSP-M expressions

parsePattern :: PT LPattern Source #

Parser for CSP-M patterns

type PT a = GenParser Token PState a Source #

PT is an alias for the ParserType