Skip to content

Pure Starlark parser for Bazel BUILD files#191

Closed
mateusz-olczyk wants to merge 7 commits intoEngFlow:mainfrom
mateusz-olczyk:starlark-buildfile-parser
Closed

Pure Starlark parser for Bazel BUILD files#191
mateusz-olczyk wants to merge 7 commits intoEngFlow:mainfrom
mateusz-olczyk:starlark-buildfile-parser

Conversation

@mateusz-olczyk
Copy link
Collaborator

The solution is the answer to #190 (comment).

Inspired by the Go implementation in bazelbuild/buildtools.

The implementation does much more than is actually needed. I started with something simple, of course, but gradually expanded it to almost complete grammar support. This wasn't nearly as much work with proper LLM support. See the README.md file to understand what this parser is capable of.

Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
Signed-off-by: Mateusz Olczyk <molczyk@virtuslab.com>
@jayconrod
Copy link
Collaborator

Sorry, this is too complicated. This is too much code and complexity to maintain for a test framework.

@mateusz-olczyk
Copy link
Collaborator Author

Yeah, Starlark definitely was not designed for such purposes... Anyway, it was nice to play with it just to prove such things are possible. The implementation is horrible, I agree. It's hard to make it better with the lack of the most fundamental features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants