Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
Hzwakenberg (talk | contribs) |
Hzwakenberg (talk | contribs) |
||
| 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 10: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 }.
}
"Digit_sequence" {
Digit_sequence = Digit+.
}
"digit" {
Digit = ("0" |
"1" |
"2" |
"3" |
"4" |
"5" |
"6" |
"7" |
"8" |
"9" |
"a" |
"b" |
"c" |
"d" |
"e" |
"f" |
"A" |
"B" |
"C" |
"D" |
"E" |
"F" |
"_"})
}
"Free_Operator" { Free_Operator = ( "+" | "-" | "*" | "/" | "\" | "=" | "<" | ">" | "@" | "#" | "|" | "&" | "~") { Free_Operator }.}
"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 } '"' .
}
Gargl
Hips and dips too!
~~ ~~
== Will this work?
Je
m'apelle Patrick
--- Test
Oh yes
bla bla
- lulu
- hop
- morille
bla bla