Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 903 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 903 Bytes

Top-down operator precedence parsing

The code is meant to accompany some notes I wrote on how Top-down operator precedence parsing (Pratt) works.

You can find the article on https://lucastadeu.com/notes/top-down-operator-precedence-parsing.

Building

Linux or macOS

You'll need GCC with C++ 17 support installed. If you're running Ubuntu, you can get it from apt.

sudo apt install gcc

If you're on macOS, you can get GCC through homebrew.

brew install gcc

Once you have GCC installed on your machine, run the ./build.sh script. A directory called build will be created at the root of this repository. The executable will be placed there under the namePrecedenceParser.

License

All content in this repository is provided under the public domain license.

See the LICENSE file at the root of this repository for more information.