Comments (4)
If I really wanted to do this, I could do this through a syntax transform. It would essentially be like:
- Are you a Call node?
- If so, do you contain an expression?
- If so, does your expression contain only sets?
- If so, prefix with a temporary variable.
from overpassify.
The above would solve #11
from overpassify.
Okay, so the above transformation was implemented. It's worth noting that that won't help on for loops at the moment. So if you iterate over an expression, this transformation is not implemented yet.
from overpassify.
So all remaining on this issue is to:
- Remove the temporary variable logic from the for translation function
- Add this logic into the syntax transformation function
from overpassify.
Related Issues (20)
- Add TMP_PREFIX constant
- Cannot use nested constructors
- Check for else in break transforms HOT 7
- Support OverpassQL's "recurse" features
- Provide a settings function
- Transform only works on the top layer
- Support tag lookups
- Find a more efficient way to do conditional filtering HOT 1
- Long term: Support user-defined functions HOT 1
- If statements are now broken HOT 8
- Support while blocks
- Might be able to store custom objects using `make`
- If statement HOT 9
- Add file to describe object model
- Ensure that typing concepts match up HOT 1
- Can't filter by keys like maxspeed:advisory HOT 1
- Does not support key regex HOT 1
- Serialize to new ternery operator
- Add support for ternerys HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from overpassify.