[muddle] [PATCH] Define rules for for fix and float

Jason Self j at jxself.org
Fri Feb 23 19:56:33 PST 2018


Signed-off-by: Jason Self <j at jxself.org>
---
 ebnf.txt | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/ebnf.txt b/ebnf.txt
index 1428afd..3937f10 100644
--- a/ebnf.txt
+++ b/ebnf.txt
@@ -14,4 +14,13 @@
   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 ? ;
+
+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