Comparing version 1.0.0 to 1.0.1
12
ample.js
@@ -63,7 +63,6 @@ var Lang = require('lang-js'), | ||
function ParenthesesCloseToken(){ | ||
} | ||
function ParenthesesCloseToken(){} | ||
ParenthesesCloseToken = createSpec(ParenthesesCloseToken, Token); | ||
ParenthesesCloseToken.tokenPrecedence = 1; | ||
ParenthesesCloseToken.prototype.parsePrecedence = 3; | ||
ParenthesesCloseToken.prototype.parsePrecedence = 10; | ||
ParenthesesCloseToken.prototype.name = 'ParenthesesCloseToken' | ||
@@ -76,7 +75,6 @@ ParenthesesCloseToken.tokenise = function(substring) { | ||
function ParenthesesOpenToken(){ | ||
} | ||
function ParenthesesOpenToken(){} | ||
ParenthesesOpenToken = createSpec(ParenthesesOpenToken, Token); | ||
ParenthesesOpenToken.tokenPrecedence = 1; | ||
ParenthesesOpenToken.prototype.parsePrecedence = 2; | ||
ParenthesesOpenToken.prototype.parsePrecedence = 5; | ||
ParenthesesOpenToken.prototype.name = 'ParenthesesOpenToken' | ||
@@ -277,3 +275,3 @@ ParenthesesOpenToken.tokenise = function(substring) { | ||
OpperatorToken.tokenPrecedence = 2; | ||
OpperatorToken.prototype.parsePrecedence = 5; | ||
OpperatorToken.prototype.parsePrecedence = 4; | ||
OpperatorToken.prototype.name = 'OpperatorToken'; | ||
@@ -280,0 +278,0 @@ OpperatorToken.prototype.parse = function(tokens, position){ |
{ | ||
"name": "ample", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "ample.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -50,2 +50,6 @@ var test = require('grape'), | ||
}); | ||
test("var a = 5; floor(a / 2)", function (t) { | ||
t.plan(1); | ||
t.equal(ample.evaluate(t.name), 2); | ||
}); | ||
test("1(1)", function (t) { | ||
@@ -52,0 +56,0 @@ t.plan(1); |
16927
484