Comments (6)
Hello @hunarjain , I am very happy you volunteer to do this task - it would be a useful syntax structure.
You will need to edit a grammar file (https://github.com/xFAANG/askql/blob/master/src/askscript/parser/askscript.grammar.pegjs) to:
step 1) make pegjs accept expression with a comma-separated list of statements. I would try adding a new definition to nonArithmNoMethodsExpression . Please read more about PegJS if needed from their site: https://pegjs.org/
step 2) write appropriate code in https://github.com/xFAANG/askql/blob/master/src/askscript/parser/askscript.grammar.pegjs.classes.ts, which will handle this and translate to mhagmajer's structures - please consult with him what's the most convenient way. Likely you will produce a code block for the comma-separated list of statements (and the last one will be treated as a return value for the whole block just out-of-the-box).
from askql.
Hello, I want to contribute to these issue.
Can you please guide me and specify in which files I have to make this change?
@mhagmajer
from askql.
Hello @hunarjain! The parser definitions are stored in https://github.com/xFAANG/askql/tree/master/src/askscript/parser. @czerwinskilukasz1 is the owner of that part of the codebase
from askql.
Hello @czerwinskilukasz1 I am really interested in resolving this issue can you please guide me as to what type of changes I have to make in the parser files mentioned by @mhagmajer.
from askql.
Hello @czerwinskilukasz1 ,
Please help me by guiding how to run the above mentioned file on my system to check errors and debug them. I am trying for first time so if you could guide me, it would be a great help to get a start.
Thanks
from askql.
Hello @khushboo97 you can use the playground
https://cli.askql.org/
from askql.
Related Issues (20)
- Enable string property names HOT 1
- A DB example
- `npm run build` fails on Windows (`mv` command is unknown)
- Syntax for using a resource can be simplified
- Refactor let HOT 3
- Command line CLI should allow (but not require) wrapping code in ask {} HOT 1
- Allow sharing of playground
- Refactor: extract common logic, checking if a reserved keyword is used, from let, const and assign resources to avoid code duplication. HOT 1
- Frontend-driven database access aka. "The Ultimate Endpoint" HOT 7
- Add JsonPath support HOT 3
- Add Lambda/serverless function as the resources HOT 2
- Add namespacing/modules HOT 6
- Let developers to call JS methods on limited JS objects HOT 9
- Add Secrets management feature HOT 2
- Access control and session management HOT 1
- Add stored procedures/persited/hash queries HOT 1
- Add HTTP GET variables access to AskScript
- TypeScript SDK HOT 1
- Add React Context and/or hooks for querying AskQL endpoints
- Unable to call object properties that are functions HOT 7
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 askql.