Difference between revisions of "Sandbox"

From Liberty Eiffel Wiki
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 }.

+%22simple%22+%7B+literal+%3D+character+%7B+character+%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