From 9ec6b6aa57e1a7e3b3eccb9b999067b28f865943 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 1 Dec 2012 16:29:41 +0100 Subject: [PATCH] Text nodes: Use text nodes in examples/arithmetics.pegjs --- examples/arithmetics.pegjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/arithmetics.pegjs b/examples/arithmetics.pegjs index 52fae2a..a0b7bc0 100644 --- a/examples/arithmetics.pegjs +++ b/examples/arithmetics.pegjs @@ -19,4 +19,4 @@ primary / "(" additive:additive ")" { return additive; } integer "integer" - = digits:[0-9]+ { return parseInt(digits.join(""), 10); } + = digits:$[0-9]+ { return parseInt(digits, 10); }