ParsingFunctions Class
Functions which provide abstractions for the parser.
Item Index
Methods
- parseAttribute static
- parseBoolean static
- parseDataMeasure static
- parseDataValue static
- parseInteger static
- parseString static
Methods
parseAttribute
-
value
-
attribute
-
preprocessor
Abstract function for parsing and setting jermaine attributes which do not require extremely complicated logic to determine their values. Any attributes which require complex logic to determine their proper values should be explicitly set in the parser.
Parameters:
-
value
String -
attribute
Function -
preprocessor
Function
Returns:
parseBoolean
-
param
Parses the allowed Boolean Strings and returns the appropriate value. If the parameter is not one of the allowed values then the parameter is returned as an error might not need to be thrown immediately.
Parameters:
-
param
String
Returns:
parseDataMeasure
-
type
Returns a curried function that parses a value into a DataMeasure of the specified type.
Parameters:
-
type
String
Returns:
parseDataValue
-
type
Returns a curried function that parses a value into a DataValue of the specified type.
Parameters:
-
type
String
Returns:
parseInteger
-
value
Parses a string argument with a radix of 10 and returns an integer.
Parameters:
-
value
String
Returns:
parseString
-
value
Parses String attributes.
Parameters:
-
value
String