forked from GitHub/gf-core
MyParser: hook for external parser
This commit is contained in:
13
src/GF/API/MyParser.hs
Normal file
13
src/GF/API/MyParser.hs
Normal 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?")
|
||||
Reference in New Issue
Block a user