| Crates.io | jsompiler_common |
| lib.rs | jsompiler_common |
| version | 0.1.2 |
| created_at | 2025-03-29 08:14:11.045642+00 |
| updated_at | 2025-04-21 18:01:30.15453+00 |
| description | Common utilities for jsompiler |
| homepage | |
| repository | https://github.com/abhiyandhakal/jsompiler |
| max_upload_size | |
| id | 1610919 |
| size | 2,523 |
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.
The code contains ErrorKind enum and an Error struct for error handling required for the Lexer and Parser.
ErrorKind enumerates possible types of errors: lexer, syntax, semantic, and unexpected token errors.Error struct holds details about an error, including its type, a message, the line number, and position where it occurred.Error::new function creates a new error with specified details.