teddriggs / fql Goto Github PK
View Code? Open in Web Editor NEWUnofficial CrowdStrike Falcon Query Language Parser
License: MIT License
Unofficial CrowdStrike Falcon Query Language Parser
License: MIT License
An incomplete infix expression currently doesn't produce an error about the missing right-hand side.
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] "host"
[email protected] "."
[email protected] "online"
[email protected] ":"
[email protected]
[email protected]
[email protected] "true"
[email protected] "+"
This test documents the current behavior, and will need to be updated.
Goal: Have something akin to syn::Lit
and support Operand::lit(&self) -> Option<Lit>
.
Right now, literals are represented by single tokens, and it's unclear how to create AST node wrappers for those. Just using ast_node
doesn't work, because Rowan doesn't consider these nodes.
A query such as "host.online:true--" should produce errors on the two trailing -
characters. Ideally, the error would indicate that we expected one of +
or ,
.
This will need to take into account the parser's RECOVERY_SET
. Given the expression (host:)+host.online:true
, the correct parse is:
[email protected]
[email protected]
[email protected]
[email protected] "("
[email protected]
[email protected]
[email protected] "host"
[email protected] ":"
[email protected] ")"
[email protected] "+"
[email protected]
[email protected]
[email protected] "host"
[email protected] "."
[email protected] "online"
[email protected] ":"
[email protected]
[email protected]
[email protected] "true"
At 6..7, expected '!', '>', '<', '>=', '<=', '~', '!~', '[', boolean, string, or integer, found ')'
However, the RECOVERY_SET
currently means that trying to create errors for trailing characters enters an infinite loop for this input: host.online:true)
.
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.