forked from GitHub/gf-core
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