mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
28 lines
658 B
Haskell
28 lines
658 B
Haskell
----------------------------------------------------------------------
|
|
-- |
|
|
-- Module : (Module)
|
|
-- Maintainer : (Maintainer)
|
|
-- Stability : (stable)
|
|
-- Portability : (portable)
|
|
--
|
|
-- > CVS $Date $
|
|
-- > CVS $Author $
|
|
-- > CVS $Revision $
|
|
--
|
|
-- (Description of the module)
|
|
-----------------------------------------------------------------------------
|
|
|
|
module MyParser where
|
|
|
|
import ShellState
|
|
import CFIdent
|
|
import CF
|
|
import Operations
|
|
|
|
-- template to define your own parser
|
|
|
|
-- type CFParser = [CFTok] -> ([(CFTree,[CFTok])],String)
|
|
|
|
myParser :: StateGrammar -> CFCat -> CFParser
|
|
myParser gr cat toks = ([],"Would you like to add your own parser?")
|