Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.1 KB

File metadata and controls

44 lines (31 loc) · 1.1 KB

Contributing to Error-Lang

Thank you for your interest in contributing to Error-Lang!

Getting Started

  1. Fork the repository

  2. Clone your fork

  3. Run just doctor to verify your setup

  4. Make your changes

  5. Run just test and just lint

  6. Submit a pull request

Language Policy

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

Adding Error Codes

To add a new error code:

  1. Add the code to ERROR_CODES in cli/main.js

  2. Add handling in compiler/src/Lexer.res or Parser.res

  3. Add a lesson in docs/Curriculum.adoc

  4. Add an example in examples/

  5. Update the grammar if needed

Code Style

  • Use deno fmt for JavaScript

  • Use rescript format for ReScript

  • SPDX license headers on all files

  • Descriptive variable names

Questions?

Open an issue or discussion on GitHub.