mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
allow metavariables with indices i.e. ?0, ?1, etc in the abstract syntax parser in PGF
This commit is contained in:
@@ -191,7 +191,8 @@ pTyped = do RP.skipSpaces
|
||||
return (ETyped e ty)
|
||||
|
||||
pMeta = do RP.char '?'
|
||||
return 0
|
||||
ds <- RP.munch isDigit
|
||||
return (read ('0':ds))
|
||||
|
||||
pLit :: RP.ReadP Literal
|
||||
pLit = liftM LStr (RP.readS_to_P reads)
|
||||
|
||||
Reference in New Issue
Block a user