summaryrefslogtreecommitdiff
path: root/src/runtime/javascript/editor-grammar/Editor.gf
diff options
context:
space:
mode:
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