Skip to content

threatstack/parboiled-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parboiled2 Example

This is the full source code for a blog post on parboiled2.

It contains parboiled2 parsers for a simplified version of Slack Assisted Search. The BNF for our simplified version is:

Input  = Term, [ Filter ];
Filter = SearchInChannel | SearchMessagesFrom | SearchOnDate
SearchInChannel = "in:", Term
SearchMessagesFrom = "from:", Term;
SearchOnDate = "on:", Term;
Term = { AlphaNumeric-Character };

Running the examples

If you have a JVM/JDK installed you can run the tests:

./sbt test

Or you can open a REPL and play with the examples:

./sbt console

About

Source for the Blog's Parboiled2 Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages