Motr  M0
Addb2Grammar Class Reference
Inheritance diagram for Addb2Grammar:
Inheritance graph
Collaboration diagram for Addb2Grammar:
Collaboration graph

Static Public Attributes

 r_start = Regex("^\*")
 
 r_meas_time = Regex("[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{9}")
 
 r_meas = Regex(".*")
 
 r_attr_start = Regex("^\|")
 
 r_attr_name = Regex("[A-Za-z0-9]+")
 
 r_attr = Optional(Regex("[^|*].*"))
 
 r_hist_start = Regex("^\|")
 
 r_hist_key = Optional(Regex("[-]{0,1}[0-9]+"))
 
 r_hist_sep = Regex(":")
 
 r_hist_val = Regex("[0-9]+")
 
 r_hist_end = Regex("\|")
 
 START
 

Detailed Description

Definition at line 38 of file addb2grammar.py.

Field Documentation

◆ r_attr

r_attr = Optional(Regex("[^|*].*"))
static

Definition at line 46 of file addb2grammar.py.

◆ r_attr_name

r_attr_name = Regex("[A-Za-z0-9]+")
static

Definition at line 45 of file addb2grammar.py.

◆ r_attr_start

r_attr_start = Regex("^\|")
static

Definition at line 44 of file addb2grammar.py.

◆ r_hist_end

r_hist_end = Regex("\|")
static

Definition at line 52 of file addb2grammar.py.

◆ r_hist_key

r_hist_key = Optional(Regex("[-]{0,1}[0-9]+"))
static

Definition at line 49 of file addb2grammar.py.

◆ r_hist_sep

r_hist_sep = Regex(":")
static

Definition at line 50 of file addb2grammar.py.

◆ r_hist_start

r_hist_start = Regex("^\|")
static

Definition at line 48 of file addb2grammar.py.

◆ r_hist_val

r_hist_val = Regex("[0-9]+")
static

Definition at line 51 of file addb2grammar.py.

◆ r_meas

r_meas = Regex(".*")
static

Definition at line 42 of file addb2grammar.py.

◆ r_meas_time

r_meas_time = Regex("[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{9}")
static

Definition at line 41 of file addb2grammar.py.

◆ r_start

r_start = Regex("^\*")
static

Definition at line 40 of file addb2grammar.py.

◆ START

START
static
Initial value:
= Repeat(Sequence(
r_start, Sequence(r_meas_time, # 1
r_meas),
Optional(Repeat(Sequence(r_hist_start, # 2
r_hist_key,
r_hist_sep,
r_hist_val,
r_hist_end))),
Repeat(Sequence(r_attr_start, # 3
r_attr_name,
r_attr))))

Definition at line 69 of file addb2grammar.py.


The documentation for this class was generated from the following file: