[muddle] [PATCH] Define rules for for fix and float
Jason Self
j at jxself.org
Fri Feb 23 20:01:05 PST 2018
Signed-off-by: Jason Self <j at jxself.org>
---
ebnf.txt | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/ebnf.txt b/ebnf.txt
index 1428afd..712ef6b 100644
--- a/ebnf.txt
+++ b/ebnf.txt
@@ -14,4 +14,15 @@
alone or by combination of their contribution(s) with the work.
*)
-character = ? Any valid Unicode code point ? ;
\ No newline at end of file
+base8 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" ;
+
+character = ? Any valid Unicode code point ? ;
+
+digit = base8 | "8" | "9" ;
+
+fix = ( "*" , base8 , { base8 } , "*" ) | ( [ ( "+" | "-" ) ] ,
+ digit , { digit } , [ "." ] , [ ( "e" | "E" ) ,
+ [ ( "+" | "-" ) ] , digit , { digit } ] ) ;
+
+float = [ ( "+" | "-" ) ] , { digit } , "." , digit ,
+ [ ( "e" | "E" ) , [ ( "+" | "-" ) ] , digit , { digit } ] ;
\ No newline at end of file
--
1.9.1
More information about the muddle
mailing list