Documentation
¶
Overview ¶
csvlang is a simple programming language that can be used to manipulate CSV files.
The main.go file is the entry point of the application. It reads the file path from the command line arguments and evaluates the code in the file.
Directories
¶
| Path | Synopsis |
|---|---|
|
ast package defines the abstract syntax tree (AST) for the language
|
ast package defines the abstract syntax tree (AST) for the language |
|
evaluator package is responsible for evaluating the AST nodes and returning the result of the evaluation.
|
evaluator package is responsible for evaluating the AST nodes and returning the result of the evaluation. |
|
lexer package is responsible for tokenizing the input string.
|
lexer package is responsible for tokenizing the input string. |
|
Environment is a map of string to Object that represents the environment in which an object is evaluated.
|
Environment is a map of string to Object that represents the environment in which an object is evaluated. |
|
Parser package is responsible for parsing the tokens from the lexer and constructing the AST.
|
Parser package is responsible for parsing the tokens from the lexer and constructing the AST. |
|
repl package is responsible for handling the file mode (repl mode is not supported) which reads the entire file content and evaluates the entire program at once.
|
repl package is responsible for handling the file mode (repl mode is not supported) which reads the entire file content and evaluates the entire program at once. |
|
token package is used to define the token types and the Token struct.
|
token package is used to define the token types and the Token struct. |
Click to show internal directories.
Click to hide internal directories.
