Thank you for your interest in contributing to Error-Lang!
-
Fork the repository
-
Clone your fork
-
Run
just doctorto verify your setup -
Make your changes
-
Run
just testandjust lint -
Submit a pull request
This project follows the RSR language policy:
-
ReScript for compiler code
-
Deno for CLI (JavaScript, no TypeScript)
-
AsciiDoc for documentation
-
No TypeScript, Node.js, npm, or Go
To add a new error code:
-
Add the code to
ERROR_CODESincli/main.js -
Add handling in
compiler/src/Lexer.resorParser.res -
Add a lesson in
docs/Curriculum.adoc -
Add an example in
examples/ -
Update the grammar if needed
-
Use
deno fmtfor JavaScript -
Use
rescript formatfor ReScript -
SPDX license headers on all files
-
Descriptive variable names