com.phasmidsoftware.number.parse
Members list
Type members
Classlikes
Represents an error related to dimensional analysis.
Represents an error related to dimensional analysis.
Value parameters
- message
-
A string describing the dimension error.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ParseErrorclass Objecttrait Matchableclass AnyShow all
The ExpressionParser object provides utilities for parsing and processing LaTeX-like mathematical expressions, leveraging string interpolation. These utilities enable creation, simplification, and evaluation of mathematical expressions represented as Expression objects.
The ExpressionParser object provides utilities for parsing and processing LaTeX-like mathematical expressions, leveraging string interpolation. These utilities enable creation, simplification, and evaluation of mathematical expressions represented as Expression objects.
TODO instead of throwing exceptions we should return a ParseError object.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ExpressionParser.type
Object responsible for parsing LaTeX-style mathematical expressions into an internal representation (MathExpr).
Object responsible for parsing LaTeX-style mathematical expressions into an internal representation (MathExpr).
Attributes
- Supertypes
-
trait RegexParserstrait Parsersclass Objecttrait Matchableclass Any
- Self type
-
LaTeXParser.type
This exception is thrown when an error occurs while parsing LaTeX input.
This exception is thrown when an error occurs while parsing LaTeX input.
Value parameters
- message
-
Descriptive message providing details about the exception.
Attributes
- Supertypes
-
trait Producttrait Equalsclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Represents an error that occurs during parsing. This sealed trait serves as a base for all specific parse error types.
Represents an error that occurs during parsing. This sealed trait serves as a base for all specific parse error types.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Exception thrown when parsing fails.
Exception thrown when parsing fails.
Value parameters
- message
-
Description of the parse error.
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Represents a syntax error encountered during parsing.
Represents a syntax error encountered during parsing.
Value parameters
- message
-
A string describing the syntax error.
- position
-
The position in the input where the syntax error occurred.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ParseErrorclass Objecttrait Matchableclass AnyShow all
Represents an error related to unit handling.
Represents an error related to unit handling.
Value parameters
- message
-
A string describing the unit error.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ParseErrorclass Objecttrait Matchableclass AnyShow all
Object responsible for parsing unit expressions into their corresponding Unit representations. This supports basic SI units, common derivations, unit powers, products, and divisions.
Object responsible for parsing unit expressions into their corresponding Unit representations. This supports basic SI units, common derivations, unit powers, products, and divisions.
Attributes
- Companion
- object
- Supertypes
-
trait RegexParserstrait Parsersclass Objecttrait Matchableclass Any
- Known subtypes
-
object UnitsParserobject QuantityParser
Attributes
- Companion
- trait
- Supertypes
- Self type
-
UnitsParser.type
Exception thrown to indicate an error encountered while parsing units.
Exception thrown to indicate an error encountered while parsing units.
Value parameters
- msg
-
The error message describing the reason for the exception.
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all