Difference between revisions of "Sandbox"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
Line 20: Line 20:
   
 
<ebnf> "digit" {
 
<ebnf> "digit" {
Digit = ("0"
+
Digit = ("0" |
"1"
+
"1" |
"2"
+
"2" |
"3"
+
"3" |
"4"
+
"4" |
"5"
+
"5" |
"6"
+
"6" |
"7"
+
"7" |
"8"
+
"8" |
"9"
+
"9" |
"a"
+
"a" |
"b"
+
"b" |
"c"
+
"c" |
"d"
+
"d" |
"e"
+
"e" |
"f"
+
"f" |
"A"
+
"A" |
"B"
+
"B" |
"C"
+
"C" |
"D"
+
"D" |
"E"
+
"E" |
"F"
+
"F" |
 
"_"})
 
"_"})
 
}
 
}

Revision as of 11:58, 18 October 2014

Welcome to the LibertyEiffelWiki Sandbox! This page is for editing experiments. Feel free to try your skills at formatting here.




Hi there !

generated Syntax diagrams

 "simple" {
literal      = character { character }.
}

+%22simple%22+%7B+literal+%3D+character+%7B+character+%7D.+%7D+

 "Digit_sequence" {
Digit_sequence = Digit+.
}

+%22Digit_sequence%22+%7B+Digit_sequence+%3D+Digit%2B.+%7D+

 "digit" {
Digit = ("0" |
        "1" |
        "2" |
        "3" |
        "4" |
        "5" |
        "6" |
        "7" |
        "8" |
        "9" |
        "a" |
        "b" |
        "c" |
        "d" |
        "e" |
        "f" |
        "A" |
        "B" |
        "C" |
        "D" |
        "E" |
        "F" |
        "_"})
}

+%22digit%22+%7B+Digit+%3D+%28%220%22+%7C+%221%22+%7C+%222%22+%7C+%223%22+%7C+%224%22+%7C+%225%22+%7C+%226%22+%7C+%227%22+%7C+%228%22+%7C+%229%22+%7C+%22a%22+%7C+%22b%22+%7C+%22c%22+%7C+%22d%22+%7C+%22e%22+%7C+%22f%22+%7C+%22A%22+%7C+%22B%22+%7C+%22C%22+%7C+%22D%22+%7C+%22E%22+%7C+%22F%22+%7C+%22_%22%7D%29+%7D+


"Free_Operator"  { Free_Operator = ( "+" | "-" | "*" | "/" | "\" | "=" | "<" | ">" | "@" | "#" | "|" | "&" | "~") { Free_Operator }.}

%22Free_Operator%22+%7B+Free_Operator+%3D+%28+%22%2B%22+%7C+%22-%22+%7C+%22%2A%22+%7C+%22%2F%22+%7C+%22%5C%22+%7C+%22%3D%22+%7C+%22%3C%22+%7C+%22%3E%22+%7C+%22%40%22+%7C+%22%23%22+%7C+%22%7C%22+%7C+%22%26%22+%7C+%22%7E%22%29+%7B+Free_Operator+%7D.%7D

 "EBNF defined in itself" {
syntax     = [ title ] "{" { production } "}" [ comment ].
production = identifier "=" expression ( "." | ";" ) .
expression = term { "|" term } .
term       = factor { factor } .
factor     = identifier
           | literal
           | "[" expression "]"
           | "(" expression ")"
           | "{" expression "}" .
identifier = character { character } .
title      = literal .
comment    = literal .
literal    = "'" character { character } "'"
           | '"' character { character } '"' .
}

+%22EBNF+defined+in+itself%22+%7B+syntax+%3D+%5B+title+%5D+%22%7B%22+%7B+production+%7D+%22%7D%22+%5B+comment+%5D.+production+%3D+identifier+%22%3D%22+expression+%28+%22.%22+%7C+%22%3B%22+%29+.+expression+%3D+term+%7B+%22%7C%22+term+%7D+.+term+%3D+factor+%7B+factor+%7D+.+factor+%3D+identifier+%7C+literal+%7C+%22%5B%22+expression+%22%5D%22+%7C+%22%28%22+expression+%22%29%22+%7C+%22%7B%22+expression+%22%7D%22+.+identifier+%3D+character+%7B+character+%7D+.+title+%3D+literal+.+comment+%3D+literal+.+literal+%3D+%22%27%22+character+%7B+character+%7D+%22%27%22+%7C+%27%22%27+character+%7B+character+%7D+%27%22%27+.+%7D

Gargl

Hips and dips too!

~~ ~~

== Will this work?

Je


m'apelle Patrick

--- Test

Oh yes

bla bla

  • lulu
  • hop
  • morille

bla bla