mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-21 15:13:11 -06:00
allow negative integers in the grammar syntax
This commit is contained in:
1 parent
a1c70841c1
commit
64da1c2021
1 file changed
+2
-2
@@ -36,8 +36,8 @@ $white+ ;
|
||||
|
||||
\" ([$u # [\" \\ \n]] | (\\ (\" | \\ | \' | n | t)))* \" { tok (T_String . unescapeInitTail . BS.unpack) }
|
||||
|
||||
$d+ { tok (T_Integer . read . BS.unpack) }
|
||||
$d+ \. $d+ (e (\-)? $d+)? { tok (T_Double . read . BS.unpack) }
|
||||
(\-)? $d+ { tok (T_Integer . read . BS.unpack) }
|
||||
(\-)? $d+ \. $d+ (e (\-)? $d+)? { tok (T_Double . read . BS.unpack) }
|
||||
|
||||
{
|
||||
|
||||
|
||||
Reference in new issue
Block a user