https://github.com/duologic/jsonnet-parser
Parser for Jsonnet written in Jsonnet
https://github.com/duologic/jsonnet-parser
jsonnet jsonnet-lib parser
Last synced: about 1 year ago
JSON representation
Parser for Jsonnet written in Jsonnet
- Host: GitHub
- URL: https://github.com/duologic/jsonnet-parser
- Owner: Duologic
- License: gpl-3.0
- Created: 2024-03-26T15:04:18.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-13T21:36:43.000Z (over 1 year ago)
- Last Synced: 2025-01-27T10:43:29.622Z (over 1 year ago)
- Topics: jsonnet, jsonnet-lib, parser
- Language: Jsonnet
- Homepage:
- Size: 525 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonnet-parser
This is a parser for Jsonnet written in Jsonnet. It serves as a research project to get a better understanding how a parser could work.
I'm running this with the rust version `jrsonnet` as the go version is orders of magnitude slower. Also see examples in `Makefile` and `scripts/` for setting `--max-stack` and `--os-stack`.
The output format is a JSON that matches a schema that can be used by [ASTsonnet](https://github.com/crdsonnet/astsonnet) to generate the Jsonnet code again.