summaryrefslogtreecommitdiff
path: root/src/runtime/javascript/editor-grammar/Editor.gf
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2009-12-14 20:01:41 +0000
committerkrasimir <krasimir@chalmers.se>2009-12-14 20:01:41 +0000
commite7dcbcc825d69a8db312f74028051181e0f97563 (patch)
treeabcb09bd1031b19441a987be36748d6a59920444 /src/runtime/javascript/editor-grammar/Editor.gf
parente3fcdaf280c4cd592ee68473b0ef3468b11a56f1 (diff)
reverse engineered version of the Editor grammar
Diffstat (limited to 'src/runtime/javascript/editor-grammar/Editor.gf')
-rw-r--r--src/runtime/javascript/editor-grammar/Editor.gf62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/runtime/javascript/editor-grammar/Editor.gf b/src/runtime/javascript/editor-grammar/Editor.gf
new file mode 100644
index 000000000..7df69ba5d
--- /dev/null
+++ b/src/runtime/javascript/editor-grammar/Editor.gf
@@ -0,0 +1,62 @@
+abstract Editor = {
+
+cat Adjective ;
+ Noun ;
+ Verb ;
+ Determiner ;
+ Sentence ;
+
+fun Available : Adjective ;
+ Next : Adjective ;
+ Previous : Adjective ;
+
+fun Bulgarian : Noun ;
+ Danish : Noun ;
+ English : Noun ;
+ Finnish : Noun ;
+ French : Noun ;
+ German : Noun ;
+ Italian : Noun ;
+ Norwegian : Noun ;
+ Russian : Noun ;
+ Spanish : Noun ;
+ Swedish : Noun ;
+
+fun Float_N : Noun ;
+ Integer_N : Noun ;
+ String_N : Noun ;
+
+ Language : Noun ;
+ Node : Noun ;
+ Page : Noun ;
+ Refinement : Noun ;
+ Tree : Noun ;
+ Wrapper : Noun ;
+
+fun Copy : Verb ;
+ Cut : Verb ;
+ Delete : Verb ;
+ Enter : Verb ;
+ Parse : Verb ;
+ Paste : Verb ;
+ Redo : Verb ;
+ Refine : Verb ;
+ Replace : Verb ;
+ Select : Verb ;
+ Show : Verb ;
+ Undo : Verb ;
+ Wrap : Verb ;
+
+fun DefPlDet : Determiner ;
+ DefSgDet : Determiner ;
+ IndefPlDet : Determiner ;
+ IndefSgDet : Determiner ;
+
+fun Command : Verb -> Determiner -> Noun -> Sentence ;
+ CommandAdj : Verb -> Determiner -> Adjective -> Noun -> Sentence ;
+ ErrorMessage : Adjective -> Noun -> Sentence ;
+ Label : Noun -> Sentence ;
+ RandomlyCommand : Verb -> Determiner -> Noun -> Sentence ;
+ SingleWordCommand : Verb -> Sentence ;
+
+} \ No newline at end of file