mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-20 10:19:32 -06:00
now the abstract syntax in PGF allows the same syntax for integers, floats and strings as in Haskell. This includes negative integers and exponents in the floats
This commit is contained in:
@@ -39,9 +39,9 @@ pOption = do
|
||||
RP.option (OOpt flg) (fmap (OFlag flg) (RP.char '=' >> pValue))
|
||||
|
||||
pValue = do
|
||||
fmap (VInt . read) (RP.munch1 isDigit)
|
||||
fmap VInt (RP.readS_to_P reads)
|
||||
RP.<++
|
||||
fmap VStr pStr
|
||||
fmap VStr (RP.readS_to_P reads)
|
||||
RP.<++
|
||||
fmap VId pFilename
|
||||
|
||||
|
||||
Reference in New Issue
Block a user