+
+
+
+
+
+
+ GF Language Reference Manual
Aarne Ranta, Krasimir Angelov
June 2014, GF 3.6
-
-
-
+
@@ -482,7 +499,7 @@ to reuse abstract and concrete modules as resources. The following table
gives, for all module types, the possible module types of their extends
and opens, as well as the forms of judgement legal in that module type.
-
+
| module type |
extends |
@@ -553,7 +570,7 @@ system, replacing modules by types and functions. This model could actually
be developed towards treating modules in GF as first-class objects; so far,
however, this step has not been motivated by any practical needs.
-
+
| module |
object and type |
@@ -918,7 +935,7 @@ The table moreover indicates whether the judgement has a default value, and
whether it contributes to the name base, i.e. introduces a new
name to the scope.
-
+
| judgement |
where |
@@ -1658,7 +1675,7 @@ inherited modules.
Here are some flags commonly included in grammars.
-
+
| flag |
value |
@@ -1721,7 +1738,7 @@ Type and other expressions have a system of precedences. The following ta
summarizes all expression forms, from the highest to the lowest precedence.
Some expressions are moreover left- or right-associative.
-
+
| prec |
expression example |
@@ -2128,7 +2145,7 @@ where
GF provides three predefined categories for abstract syntax, with predefined
expressions:
-
+
| category |
expressions |
@@ -2264,7 +2281,7 @@ Expressions of type Str have the following canonical forms:
the empty token list, []
concatenation, s ++ t, where s,t : Str
prefix-dependent choice,
- pre {p1 => s1 ; ... ; pn => sn ; _ => s }, where
+ pre {p1 => s1 ; ... ; pn => sn ; _ => s }, where
- s, s1,...,sn, p1,...,pn :
Str
@@ -3016,7 +3033,7 @@ The following predefined operations are defined in the resource module
prelude/Predef.gf. Their implementations are defined as
a part of the GF grammar compiler.
-
+
| operation |
type |
@@ -3181,7 +3198,7 @@ the abstract syntax.
Compiler pragmas are a special form of comments prefixed with --#.
Currently GF interprets the following pragmas.
-
+
| pragma |
explanation |
@@ -3279,7 +3296,7 @@ The rules have the form
where an RHS can be any regular expression
built from quoted strings and category symbols, in the following ways:
-
+
| RHS item |
explanation |
@@ -4579,6 +4596,6 @@ All other symbols are terminals.
-
-
-
+
+
+