diff options
author | booo <borgers@mi.fu-berlin.de> | 2011-01-30 01:35:57 +0100 |
---|---|---|
committer | booo <borgers@mi.fu-berlin.de> | 2011-01-30 01:35:57 +0100 |
commit | 46956a6a4079917bca0d5a22497116caa82386db (patch) | |
tree | e3d6aae326d1831e34f26960927dca779c4027a3 /src/nodejs/alternative/testgrammar | |
parent | fb8641c55e99b6a207dcd7507310d9c4b3bbc376 (diff) | |
download | osm-xapi-46956a6a4079917bca0d5a22497116caa82386db.tar.gz osm-xapi-46956a6a4079917bca0d5a22497116caa82386db.tar.xz osm-xapi-46956a6a4079917bca0d5a22497116caa82386db.zip |
almost working; do some testing...
Diffstat (limited to 'src/nodejs/alternative/testgrammar')
-rw-r--r-- | src/nodejs/alternative/testgrammar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodejs/alternative/testgrammar b/src/nodejs/alternative/testgrammar index e212493..0e43013 100644 --- a/src/nodejs/alternative/testgrammar +++ b/src/nodejs/alternative/testgrammar @@ -3,7 +3,7 @@ * "2*(3+4)". The parser generated from this grammar then computes their value. */ -url = object:object p1:predicate p2:predicate { var result = {object:object}; if(p1.tags != undefined) {result.tags= p1.tags} else if(p1.bbox != undefined) {result.bbox=p1.bbox;} if(p2.tags != undefined) {result.tags= p2.tags} else if(p2.bbox != undefined) {result.bbox=p2.bbox;} return result;}/ object predicate / object +url = object:object p1:predicate p2:predicate { var result = {object:object}; if(p1.tags != undefined) {result.tags= p1.tags} else if(p1.bbox != undefined) {result.bbox=p1.bbox;} if(p2.tags != undefined) {result.tags= p2.tags} else if(p2.bbox != undefined) {result.bbox=p2.bbox;} return result;}/ object:object p:predicate {var result={}; result.object=object; if(p.tags != undefined) {result.tags=p.tags} else {result.bbox=p.bbox} return result} / object:object { return {object:object}} object = v:"node" {return v} / v:"way" {return v} / v:"relation" {return v} / v:"*" {return v} |