jsompiler_common 0.1.2

Common utilities for jsompiler
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 3 items with examples
  • Size
  • Source code size: 2.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 361.24 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • abhiyandhakal/jsompiler
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • abhiyandhakal anishh747

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.

  • ErrorKind enumerates possible types of errors: lexer, syntax, semantic, and unexpected token errors.
  • The Error struct holds details about an error, including its type, a message, the line number, and position where it occurred.
  • The Error::new function creates a new error with specified details.