Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
(first try of generting syntax diagrams) |
(syntax diagrams) |
||
Line 10: | Line 10: | ||
== generated Syntax diagrams == |
== generated Syntax diagrams == |
||
<ebnf> "simple" { |
<ebnf> "simple" { |
||
− | literal = character { character }. |
+ | literal = character { character }. |
+ | } |
||
</ebnf> |
</ebnf> |
||
+ | |||
+ | <ebnf>"Free_Operator" { Free_Operator = ( "+" | "-" | "*" | "/" | "\" | "=" | "<" | ">" | "@" | "#" | "|" | "&" | "~") { Free_Operator }.}</ebnf> |
||
<ebnf> "EBNF defined in itself" { |
<ebnf> "EBNF defined in itself" { |
||
syntax = [ title ] "{" { production } "}" [ comment ]. |
syntax = [ title ] "{" { production } "}" [ comment ]. |
Revision as of 22:09, 16 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 }. }
"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