3 releases
Uses new Rust 2024
| 0.1.2 | Apr 21, 2025 |
|---|---|
| 0.1.1 | Apr 21, 2025 |
| 0.1.0 | Mar 29, 2025 |
#1337 in Programming languages
88 downloads per month
Used in jsompiler_lexer
3KB
jsompiler_common
The jsompiler_common is part of jsompiler, a Rust based JavaScript compiler.
It contains shared components and functionalities, which is to be used by other parts of the compiler.
API Documentation
The code contains ErrorKind enum and an Error struct for error handling required for the Lexer and Parser.
ErrorKindenumerates possible types of errors: lexer, syntax, semantic, and unexpected token errors.- The
Errorstruct holds details about an error, including its type, a message, the line number, and position where it occurred. - The
Error::newfunction creates a new error with specified details.