Permalink
Browse files

Adding field

  • Loading branch information...
tmcw committed Dec 5, 2011
1 parent 8b5ea80 commit c0526392dc60d1840213946b260522616b007679
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/carto/tree/field.js
View
@@ -0,0 +1,13 @@
+(function(tree) {
+
+tree.Field = function Keyword(value) {
+ this.value = value;
+ this.is = 'field';
+};
+
+tree.Field.prototype = {
+ eval: function() { return this },
+ toString: function() { return '[' + this.value + ']' }
+};
+
+})(require('../tree'));

0 comments on commit c052639

Please sign in to comment.