Difference between revisions of "Sandbox"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
Line 9: Line 9:
   
 
== generated Syntax diagrams ==
 
== generated Syntax diagrams ==
<ebnf> "simple" {
+
<ebnf> "Binary operator" {
  +
Binary_operator = ( ("+"|"-"|"*"|"/"|"//"|"\\") |
literal = character { character }.
 
  +
("<"|">"|"<="|">=") |
}
 
  +
("and"|"or"|"xor") |
</ebnf>
 
  +
"external_string" Manifest_string "Alias" Manifest_string ).
  +
}</ebnf>
  +
  +
  +
   
 
<ebnf> "New_export_item" {
 
<ebnf> "New_export_item" {

Revision as of 00:40, 6 November 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

 "Binary operator" {
   Binary_operator = ( ("+"|"-"|"*"|"/"|"//"|"\\") | 
                       ("<"|">"|"<="|">=") |
                       ("and"|"or"|"xor") | 
                      "external_string" Manifest_string "Alias" Manifest_string ).
}

+%22Binary+operator%22+%7B+Binary_operator+%3D+%28+%28%22%2B%22%7C%22-%22%7C%22%2A%22%7C%22%2F%22%7C%22%2F%2F%22%7C%22%5C%5C%22%29+%7C+%28%22%3C%22%7C%22%3E%22%7C%22%3C%3D%22%7C%22%3E%3D%22%29+%7C+%28%22and%22%7C%22or%22%7C%22xor%22%29+%7C+%22external_string%22+Manifest_string+%22Alias%22+Manifest_string+%29.+%7D



 "New_export_item" {
     New_export_item = clients [ ("all" | { feature_name | ","} ) ] .
}

+%22New_export_item%22+%7B+New_export_item+%3D+clients+%5B+%28%22all%22+%7C+%7B+feature_name+%7C+%22%2C%22%7D+%29+%5D+.+%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