From 6e0babeb07a4d161730a3b55707755037e3fd23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 3 Jan 2019 17:51:58 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=AD=E6=B3=95=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/grammar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/src') diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 6ab9ded0..133ffbbd 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -232,9 +232,9 @@ ErrNumber <- ({} {([0-9a-zA-Z] / '.')+}) Number10 <- Float10 Float10Exp? / Integer10 Float10? Float10Exp? -Integer10 <- '0' / [1-9] [0-9]* '.'? [0-9]* +Integer10 <- [0-9]+ '.'? [0-9]* Float10 <- '.' [0-9]+ -Float10Exp <- [eE] [+-]? [1-9] [0-9]* +Float10Exp <- [eE] [+-]? [0-9]+ / ({} [eE] [+-]? {}) -> MissExponent Number16 <- '0' [xX] Float16 Float16Exp? @@ -243,7 +243,7 @@ Integer16 <- X16+ '.'? X16* / ({} {Word*}) -> MustX16 Float16 <- '.' X16+ / '.' ({} {Word*}) -> MustX16 -Float16Exp <- [pP] [+-]? [1-9] [0-9]* +Float16Exp <- [pP] [+-]? [0-9]+ / ({} [pP] [+-]? {}) -> MissExponent ]] -- cgit v1.2.3