-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Treetop Support - https://cjheath.github.io/treetop/ (#571)
A DSL that integrates with Ruby for expressing a PEG (parsing expression grammer). The tool uses itself to define the language so if you really want the full details on the language it is at: https://github.com/cjheath/treetop/blob/master/lib/treetop/compiler/metagrammar.treetop But the cliff notes are: * Very Ruby-like * Only supports single-line comments * Embeds proper Ruby code so I just copy/pasted the complexitychecks from the Ruby language specs. To make this commit I just: 1. Added it to the `languages.json` file (per README) 2. Ran `go generate` (per README) 3. Ran `./test-all.sh`. This confirmed all green and updated `LANGAUGES.md` and `SCC-OUTPUT-REPORT.html` (maybe this step should be added to README?) I also ran `go build` to create the binary and tested it against my project which has many Treetop files and confirmed it worked.
- Loading branch information
Showing
4 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.