Code Monkey home page Code Monkey logo

parser's Introduction

Important Headers

  • X-FRAME-OPTIONS: 'SAMEORIGIN'

  • X-Content-Type-Options: 'nosniff'

  • X-XSS-Protection: '1; mode=block'

  • Content-Security-Policy

  • on Employee filterBy(isActiveEmployee) aggregate count(Employee.EmployeeID)

Supported Keywords

- on
- validUntil
- instant
- filterBy
- aggregate
- count

TODO:

- Add Subject, Property, concept validations
- Query transformation
- Unit tests on lexer, parser, visitor and query transformation
- Custom Errors for lexer, parser, Subject, Property, concept validations
- Integrate remaining keywords 

Basic

- default analytic dashboards & widgets
- formulas for each widget
- define objects and functions, keywords for 1st phase

simple arithmetic expression and query language expression

1+1
1+11+11111+22*2/2
on identifier aggregate count(identifier)
on identifier validUntil Instant filterBy(identifier) aggregate count(identifier)

now i want to extend the grammar to support query language expression followed by arithmetic expression and another one is arithmetic expression followed by query language expression.

for example: query language expression followed by arithmetic expression:

on identifier aggregate count(identifier) + 10 + 10 * 1 * 15 / 44
on identifier validUntil Instant aggregate count(identifier) * 5
on identifier filterBy(identifier) aggregate count(identifier) / 5
on identifier validUntil Instant filterBy(identifier) aggregate count(identifier) - 4

arithmetic expression followed by query language expression:

5 + on identifier aggregate count(identifier)
5 * 5 + on identifier validUntil Instant aggregate count(identifier)
5 / 5 + on identifier filterBy(identifier) aggregate count(identifier)
5 - 4 + on identifier validUntil Instant filterBy(identifier) aggregate count(identifier)

please correct the parser accordingly, and query language should present only once

parser's People

Contributors

swami-sanapathi avatar

Watchers

 avatar

Forkers

jairaj-budi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.