Difference between revisions of "Sandbox"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
</ebnf>
 
</ebnf>
   
<ebnf> "digit" {Digit:
+
<ebnf> "digit" {
"0"
+
Digit = ("0"
 
"1"
 
"1"
 
"2"
 
"2"
Line 42: Line 42:
 
"E"
 
"E"
 
"F"
 
"F"
"_"
+
"_"})
 
}
 
}
 
</ebnf>
 
</ebnf>

Revision as of 10:57, 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+%221%22+%222%22+%223%22+%224%22+%225%22+%226%22+%227%22+%228%22+%229%22+%22a%22+%22b%22+%22c%22+%22d%22+%22e%22+%22f%22+%22A%22+%22B%22+%22C%22+%22D%22+%22E%22+%22F%22+%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