mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -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)
|
return (ETyped e ty)
|
||||||
|
|
||||||
pMeta = do RP.char '?'
|
pMeta = do RP.char '?'
|
||||||
return 0
|
ds <- RP.munch isDigit
|
||||||
|
return (read ('0':ds))
|
||||||
|
|
||||||
pLit :: RP.ReadP Literal
|
pLit :: RP.ReadP Literal
|
||||||
pLit = liftM LStr (RP.readS_to_P reads)
|
pLit = liftM LStr (RP.readS_to_P reads)
|
||||||
|
|||||||
Reference in New Issue
Block a user