https://github.com/byteb8/go-parser
a simple language parser based on bratt parsing
https://github.com/byteb8/go-parser
lexer-parser parsing
Last synced: 7 months ago
JSON representation
a simple language parser based on bratt parsing
- Host: GitHub
- URL: https://github.com/byteb8/go-parser
- Owner: byteB8
- Created: 2024-08-26T04:18:06.000Z (over 1 year ago)
- Default Branch: local
- Last Pushed: 2024-08-26T04:56:44.000Z (over 1 year ago)
- Last Synced: 2025-07-19T16:57:10.401Z (10 months ago)
- Topics: lexer-parser, parsing
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Brief
A simple language parser implemented in go designed to parse source code into an abstract syntax tree (AST). The parser is built using Pratt parsing approach.
- The parser can be used to parse source code into an AST. The AST can then be used for various purposes such as code analysis, optimization, or generation.
- Handles prefix and infix operators.
- Uses a binding power approach to handle operator precedence
#### Local Setup
- Clone the repository: `git clone https://github.com/KumaarBalbir/go-parser.git`
- Navigate to the project directory: `cd go-parser`
- Build the parser: `go build -o ./src`
- Run the parser: `./`
&thanks.