summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-09 18:58:56 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-09 19:13:46 -0500
commitd411e681e571ac054352b9665487f10037d9325d (patch)
treecf5d425426624ca4798b286fc81116e46f31cb1d /dimension/common.rules
parent7eef42c72cc172a1ed8087e842905f42e737131d (diff)
downloaddimension-d411e681e571ac054352b9665487f10037d9325d.tar.xz
Support #include.
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 {