Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
m (Smart->Liberty) |
(first try of generting syntax diagrams) |
||
Line 7: | Line 7: | ||
Hi there ! |
Hi there ! |
||
+ | |||
+ | == generated Syntax diagrams == |
||
+ | <ebnf> "simple" { |
||
+ | literal = character { character }. |
||
+ | </ebnf> |
||
+ | <ebnf> "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 } '"' . |
||
+ | }</ebnf> |
||
==Gargl== |
==Gargl== |
Revision as of 20:25, 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 }.
"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