21 lines
377 B
JavaScript
21 lines
377 B
JavaScript
(function(tree) {
|
|
|
|
tree.Comparison = function(str) {
|
|
this.value = str;
|
|
};
|
|
tree.Comparison.prototype = {
|
|
toCSS: function() {
|
|
return {
|
|
'<': '<',
|
|
'>': '>',
|
|
'=': '=',
|
|
'<=': '< =',
|
|
'>=': '> ='}[this.value];
|
|
},
|
|
eval: function() {
|
|
return this;
|
|
}
|
|
};
|
|
|
|
})(require('mess/tree'));
|