Skip to content
Browse files

Adding field

  • Loading branch information...
1 parent 8b5ea80 commit c0526392dc60d1840213946b260522616b007679 @tmcw tmcw committed Dec 5, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/carto/tree/field.js
View
13 lib/carto/tree/field.js
@@ -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.
Something went wrong with that request. Please try again.