nathanntg / lite-lexer Goto Github PK
View Code? Open in Web Editor NEWA light-weight, relatively fast lexer for use in PHP. Example includes a simple query language.
License: MIT License
A light-weight, relatively fast lexer for use in PHP. Example includes a simple query language.
License: MIT License
Use consistent directory structure and path names.
Given the example query parser with the operator list defining "IS" before "IS NOT", the parser fails to parse:
column IS NOT NULL
This is because the "operator" is a standalone block. Once it successfully matches an operator, it will not back track from the separate "value" block. A short term work around is to change the order of the operators, but this really necessitates a larger refactor to a true tree based parser that can backtrack (e.g., using DFS until a full match is found).
Add a tree processing mode to collapse tree branches that have a singe unnamed leaf. Looking at the parsed tree in the example, there are a lot of nodes that have a single unnamed child. This is a useful paradigm for repeated value parameters.
It would be nice to offer a consolidated option that compresses these unnamed children.
Add a "composer.json" file and submit to packagist.
Argument 2 passed to Addins\Parser\Sections_Ordered::parse() must be an instance of Addins\Parser\ParserBlock, null given, called in ...\vendor\nathanntg\lite-lexer\parser.i.php on line 159 and defined in ordered.i.php line 39
The root cause is described here:
https://stackoverflow.com/questions/14584145/cannot-pass-null-argument-when-using-type-hinting
You cannot pass null if using type hinting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.