Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

879 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tree-sitter-abl

OpenEdge Advanced Business Language (ABL) grammar for tree-sitter.

Warning

While the parser already implements most ABL statements (at least those defined in the reference), the shape of AST nodes is not yet considered stable. The grammar should be treated as experimental, and breaking changes are expected.

Notes

The grammar currently faces a few issues, please keep in mind:

  • Tree-sitter generated parser.c (due to high action/state count) exceeds GitHub's 100 MiB file limit, so it is not committed to the repository. It is regenerated from grammar.js on demand:
    • bun install triggers the prepare script (bun run tools/generate.js && bun run tools/minify.js) which creates src/parser.c minified.
    • The CI workflow (.github/workflows/ci.yml) regenerates parser.c before building and testing.
    • The release workflow (.github/workflows/release.yml) regenerates parser.c before building the native (.so) and .wasm artifacts.
    • When publishing to npm, prepare runs at pack time and src/parser.c is included in the tarball via the files allow-list, so registry consumers receive a ready-to-build package.
    • Local development requires Bun because tools/generate.js and tools/minify.js rely on Bun APIs. Run bun run generate to (re)create parser.c.
  • Compiling .wasm is impossible without upstream fixes in LLVM, the fix has been merged and the change is expected to come out in clang-22.2 or later, it then needs to be adopted in wasi-sdk (and optionally emscripten).
  • During the .wasm build, tree-sitter uses wasm-opt optimization pass on the binary, the pass takes a long time (~16mins), please be patient.

See also

License

MIT License

Copyright (c) Kamil Jakubus, Jason Chrosrova, Eglė Kazbaraitė and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

OpenEdge ABL grammar for tree-sitter

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages