summaryrefslogtreecommitdiff
path: root/www/htdocs/bnf.txt
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-09 11:03:45 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-09 11:03:45 +0000
commit73a06a245670e025438e4e9505135e1c8e50efb5 (patch)
tree82f7127a4ccb319d56bacd1fecfb18c28c290090 /www/htdocs/bnf.txt
parent461398563dbcab1a05d2952dcca3a37b966f1fd0 (diff)
Move the website stuff out of tikzit into trunk
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@367 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'www/htdocs/bnf.txt')
-rw-r--r--www/htdocs/bnf.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/www/htdocs/bnf.txt b/www/htdocs/bnf.txt
new file mode 100644
index 0000000..e5be059
--- /dev/null
+++ b/www/htdocs/bnf.txt
@@ -0,0 +1,31 @@
+<tikzpicture> ::= "\begin{tikzpicture}" <properties>?
+ <expression>*
+ "\end{tikzpicture}"
+
+<expression> ::= <ignore> | <node> | <edge> | <bounding box>
+
+<ignore> ::= "\begin{pgfonlayer}" DELIMITED_STRING |
+ "\end{pgfonlayer}"
+
+<properties> ::= "[" <property> ("," <property>)* "]"
+
+<property> ::= <symbol>* "=" <value> | <symbol>*
+
+<symbol> ::= WORD | number
+
+<value> ::= <symbol>* | QUOTED_STRING
+
+<node> ::= "\node" <properties>? <node name>
+ "at" <coords> DELIMITED_STRING ";"
+
+<node name> ::= "(" (NATURAL_NUMBER | WORD) (".center")? ")"
+
+<coords> ::= "(" NUMBER "," NUMBER ")"
+
+<edge> ::= "\draw" <properties>? <node name>
+ "to" <edge node>? (<node name> | "()") ";"
+
+<edge node> ::= "node" <properties>? DELIMITED_STRING
+
+<bounding box> ::= "\path" "[use as bounding box]" <coords>
+ "rectangle" <coords> ";"