summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules8
1 files changed, 7 insertions, 1 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index 0bf2557..f0e8eae 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/
-/* Identifiers */
+/* Fundamental language elements */
IDENTIFIER: "identifier" {
$$ = dmnsn_new_astnode(DMNSN_AST_IDENTIFIER, @$);
@@ -27,6 +27,12 @@ IDENTIFIER: "identifier" {
}
;
+STRING: "string" {
+ $$ = dmnsn_new_astnode(DMNSN_AST_STRING, @$);
+ $$.ptr = $1;
+ }
+;
+
/* Transformations */
TRANSFORMATION: "rotate" VECTOR {