Creating a Parser Using ANTLR4 and Gradle
Creating a programming language is simpler than you might think. Today, we are going to implement a parser using ANTLR4, a parser generator.
Apologies for the rambling; I went a little insane after arguing with Gradle and ChatGPT for the last 30 hours.
Symbols:
"└──"
"├──"
" ── "
- Intro 0:00
- Gradle Init 1:11
- build.gradle.kts 3:08
- Grammar File 17:04
- Removing Tests 25:13
- Hello World Again 25:59
- Using the Parser 28:04
- Printing the ParseTree 34:21
- Outro 53:01
ANTLR Java Docs: https://www.antlr3.org/api/Java/org/antlr/runtime/package-summary.html
Stack Overflow Help: https://stackoverflow.com/a/71094727
End-of-Episode Source Code: https://github.com/DavidMacDonald11/tutorial-language/tree/aca961d16a26ccae46a670a0b410311fc74b6fcd
My Programming Language, Sea: https://github.com/DavidMacDonald11/Sea-Compiler
End-Card Image by 200 Degrees from Pixabay https://pixabay.com/vectors/programmer-programming-code-work-1653351/
End-Card Music - Password Infinity by Evgeny Bardyuzha from Pixabay: https://pixabay.com/music/beats-password-infinity-123276/