An open API service indexing awesome lists of open source software.

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

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.