| Home | Trees | Indices | Help |
|
|---|
|
|
Here are some common low-level expressions that may be useful in jump-starting parser development:
Parse actions:
| Instance Methods | |||
|
|||
|
|||
| Static Methods | |||
|
|||
|
|||
|
|||
| Class Variables | |
integer = integerexpression that parses an unsigned integer, returns an int |
|
hex_integer = hex integerexpression that parses a hexadecimal integer, returns an int |
|
signedInteger = signed integerexpression that parses an integer with optional leading sign, returns an int |
|
fraction = fractionfractional expression of an integer divided by an integer, returns a float |
|
mixed_integer = fraction or mixed integer-fractionmixed integer of the form 'integer - fraction', with optional leading integer, returns float |
|
real = real numberexpression that parses a floating point number and returns a float |
|
sciReal = real number with scientific notationexpression that parses a floating point number with optional scientific notation and returns a float |
|
numeric = {real number with scientific notation | real number any numeric expression, returns the corresponding Python type |
|
number = numberany int or real number, returned as float |
|
identifier = identifiertypical code identifier (leading alpha or '_', followed by 0 or more alphas, nums, or '_') |
|
ipv4_address = IPv4 addressIPv4 address ( 0.0.0.0 - 255.255.255.255)
|
|
ipv6_address = IPv6 addressIPv6 address (long, short, or mixed form) |
|
mac_address = MAC addressMAC address xx:xx:xx:xx:xx (may also have '-' or '.' delimiters) |
|
iso8601_date = ISO8601 dateISO8601 date ( yyyy-mm-dd)
|
|
iso8601_datetime = ISO8601 datetimeISO8601 datetime ( yyyy-mm-ddThh:mm:ss.s(Z|+-00:00)) -
trailing seconds, milliseconds, and timezone optional; accepts
separating 'T' or ' '
|
|
uuid = UUIDUUID ( xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
|
|
| Method Details |
Helper to create a parse action for converting parsed date string to Python datetime.date Params -
|
Helper to create a parse action for converting parsed datetime string to Python datetime.datetime Params -
|
| Class Variable Details |
numericany numeric expression, returns the corresponding Python type
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Jun 13 15:26:28 2016 | http://epydoc.sourceforge.net |