maha.parsers.templates.dimension#

Module Contents#

Classes#

Dimension

Template for the parsed item

class Dimension(expression, body, value, start, end, dimension_type)[source]#

Template for the parsed item

Parameters
expression :maha.rexy.Expression[source]#

The expression that was used to find the value

body :str[source]#

Text from the input that was matched by the expression.

value :Any[source]#

Extracted value

start :int[source]#

Start index of the value in the text

end :int[source]#

End index of the value in the text

dimension_type :maha.parsers.templates.enums.DimensionType[source]#

Dimension type.