This is a my collection of tools I use to develop my toy programming languages.
go get github.com/renatopp/langtools
runes
- utility package that provide rune checkers such asisWhitespace
.tokens
- contains types forChar
andToken
, representing the lexical info from source code.lexers
- contains all utilities for tokenization. Mostly based on theBaseLexer
class.parsers
- contains all utilities for parsing tokens into ASTs. Mostly based on theBaseParser
class.asts
- contains the types for ASTNode
.
Check the ./examples folder for detailed usage.