You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
Joeri van Arkel edited this page Oct 16, 2022
·
4 revisions
Welcome to the PirateLang wiki!
Solution Structure
PirateLexer
Takes a .pirate file and lexes it into a list of tokens. A single token has a group and type property.
PirateParser
Takes a list of tokens from the lexer and parses it to a Scope. A scope consists of a list of Node. A node is created in the Parsers. This list of nodes is serialized locally.
PirateInterpreter
Takes the serialized scope and visits each node for a result. Returns a BaseValue type object.
Shell
Runs the Lexer, Parser and Interpreter of the file path in the argument.