1
0
forked from GitHub/gf-core

MyParser: hook for external parser

This commit is contained in:
aarne
2004-05-27 08:28:43 +00:00
parent a4c388374f
commit 244307ca37
3 changed files with 17 additions and 1 deletions

13
src/GF/API/MyParser.hs Normal file
View File

@@ -0,0 +1,13 @@
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?")