Difference between revisions of "Sandbox"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
(removed EBNF in it self example and added some options for new export list)
(9 intermediate revisions by one other user not shown)
Line 9: Line 9:
   
 
== generated Syntax diagrams ==
 
== generated Syntax diagrams ==
<ebnf> "simple" {
+
<ebnf> "test" {
literal = character { character }.
+
test = ( loop ).
  +
}</ebnf>
  +
  +
  +
<ebnf> "New_export_item1" {
  +
new_export_item = clients ( "all" | feature_name_list ) .
  +
feature_name_list = feature_name_list { "," feature_name }.
 
}
 
}
 
</ebnf>
 
</ebnf>
   
  +
<ebnf> "Digit_sequence" {
 
  +
<ebnf> "New_export_item2" {
Digit_sequence = Digit+.
 
  +
new_export_item = ( clients "all" ) | ( clients feature_name_list ) .
  +
feature_name_list = feature_name_list { "," feature_name }.
 
}
 
}
 
</ebnf>
 
</ebnf>
   
<ebnf> "Digit" {
+
<ebnf> "New_export_item3" {
  +
new_export_item = ( clients "all" ) | ( clients feature_name {"," feature_name} ) .
Digit = ("0" |
 
"1" |
 
"2" |
 
"3" |
 
"4" |
 
"5" |
 
"6" |
 
"7" |
 
"8" |
 
"9" |
 
"a" |
 
"b" |
 
"c" |
 
"d" |
 
"e" |
 
"f" |
 
"A" |
 
"B" |
 
"C" |
 
"D" |
 
"E" |
 
"F" |
 
"_" ).}
 
 
}
 
}
 
</ebnf>
 
</ebnf>
   
  +
<ebnf> "New_export_item4" {
 
  +
New_export_item = clients [ "all" | feature_name { "," feature_name } ] .
  +
}
  +
</ebnf>
   
 
<ebnf>"Free_Operator" { Free_Operator = ( "+" | "-" | "*" | "/" | "\" | "=" | "<" | ">" | "@" | "#" | "|" | "&" | "~") { Free_Operator }.}</ebnf>
 
<ebnf>"Free_Operator" { Free_Operator = ( "+" | "-" | "*" | "/" | "\" | "=" | "<" | ">" | "@" | "#" | "|" | "&" | "~") { Free_Operator }.}</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:23, 9 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

 "test" {
   test = ( loop ).
}

+%22test%22+%7B+test+%3D+%28+loop+%29.+%7D


 "New_export_item1" {
    new_export_item = clients ( "all" | feature_name_list ) .
    feature_name_list = feature_name_list { "," feature_name }.
}

+%22New_export_item1%22+%7B+new_export_item+%3D+clients+%28+%22all%22+%7C+feature_name_list+%29+.+feature_name_list+%3D+feature_name_list+%7B+%22%2C%22+feature_name+%7D.+%7D+


 "New_export_item2" {
    new_export_item = ( clients "all" ) | ( clients feature_name_list ) .
    feature_name_list = feature_name_list { "," feature_name }.
}

+%22New_export_item2%22+%7B+new_export_item+%3D+%28+clients+%22all%22+%29+%7C+%28+clients+feature_name_list+%29+.+feature_name_list+%3D+feature_name_list+%7B+%22%2C%22+feature_name+%7D.+%7D+

 "New_export_item3" {
    new_export_item = ( clients "all" ) | ( clients feature_name {"," feature_name} ) .
}

+%22New_export_item3%22+%7B+new_export_item+%3D+%28+clients+%22all%22+%29+%7C+%28+clients+feature_name+%7B%22%2C%22+feature_name%7D+%29+.+%7D+

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

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

Gargl

Hips and dips too!

~~ ~~

== Will this work?

Je


m'apelle Patrick

--- Test

Oh yes

bla bla

  • lulu
  • hop
  • morille

bla bla