SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
script.regex Namespace Reference

Regex definitions for logging. More...

Variables

str STATE_PASS = r"\" *(\S+.*?) +(?i:state)\s*\""
 
tuple SPECIAL_PASS
 
str SPECIAL_FAIL = r"_LogPrebuildString\s*\‍(\s*([^\"]*?)\s*\‍)"
 
str TAG_PASS = r"LOG_TAG(?= )\s*[^\"=]+?=\s*(\"\s*\S.*\")\s*;"
 
str TAG_FAIL = r"(?:LOG_TAG(?= )\s*[^\"=]+?=\s*)(?:[^\"=]+?|\"\s*\")\s*;"
 
str CALL_SS = r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*(\"\s*\S(?:\\.|[^\"])+\")\s*,\s*(\"(\\.|[^\"])*\")\s*\‍)\s*;)"
 
str CALL_VS = r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*([^\"]+?)\s*,\s*(\"(?:\\.|[^\"])*\")\s*\‍)\s*;)"
 
tuple CALL_SSV
 
str CALL_VSV = r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*([^\"]+?)\s*,\s*(\".*?\")\s*,\s*(.+?)\s*\‍)\s*;)"
 
str CALL_ERR_LITERAL = r"(?:(Log\s*\.*\s*(?:[diwefp])?\s*\‍(\s*(?:[^\"]+?|\"(?:[^\"]|\\\")*?\")\s*,\s*)([^\";]+?)(\s*(?:,\s*(?:.+?))?\s*\‍)\s*;))"
 
str CALL_ERR_BLANK = r"(?:(Log\s*\.*\s*(?:[diwefp])?\s*\‍(\s*)(\"\s*\")(\s*,.*?\‍)\s*;))"
 

Detailed Description

Regex definitions for logging.

Variable Documentation

◆ CALL_ERR_BLANK

str script.regex.CALL_ERR_BLANK = r"(?:(Log\s*\.*\s*(?:[diwefp])?\s*\‍(\s*)(\"\s*\")(\s*,.*?\‍)\s*;))"

Definition at line 20 of file regex.py.

◆ CALL_ERR_LITERAL

str script.regex.CALL_ERR_LITERAL = r"(?:(Log\s*\.*\s*(?:[diwefp])?\s*\‍(\s*(?:[^\"]+?|\"(?:[^\"]|\\\")*?\")\s*,\s*)([^\";]+?)(\s*(?:,\s*(?:.+?))?\s*\‍)\s*;))"

Definition at line 19 of file regex.py.

◆ CALL_SS

str script.regex.CALL_SS = r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*(\"\s*\S(?:\\.|[^\"])+\")\s*,\s*(\"(\\.|[^\"])*\")\s*\‍)\s*;)"

Definition at line 13 of file regex.py.

◆ CALL_SSV

tuple script.regex.CALL_SSV
Initial value:
1= (
2 r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*(\"\s*\S(?:\\.|[^\"])+\")\s*,\s*(\".*?\")\s*,\s*(.+?)\s*\‍)\s*;)" # -> Log("Str", "Str", Var);
3)

Definition at line 15 of file regex.py.

◆ CALL_VS

str script.regex.CALL_VS = r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*([^\"]+?)\s*,\s*(\"(?:\\.|[^\"])*\")\s*\‍)\s*;)"

Definition at line 14 of file regex.py.

◆ CALL_VSV

str script.regex.CALL_VSV = r"(?:Log\s*\.*\s*([diwefp])?\s*\‍(\s*([^\"]+?)\s*,\s*(\".*?\")\s*,\s*(.+?)\s*\‍)\s*;)"

Definition at line 18 of file regex.py.

◆ SPECIAL_FAIL

str script.regex.SPECIAL_FAIL = r"_LogPrebuildString\s*\‍(\s*([^\"]*?)\s*\‍)"

Definition at line 8 of file regex.py.

◆ SPECIAL_PASS

tuple script.regex.SPECIAL_PASS
Initial value:
1= (
2 r"_LogPrebuildString\s*\‍(\s*(\".*?\")\s*\‍)" # _LogPrebuildString("Str") # Special case where we can indirectly allocate a string
3)

Definition at line 5 of file regex.py.

◆ STATE_PASS

str script.regex.STATE_PASS = r"\" *(\S+.*?) +(?i:state)\s*\""

Definition at line 3 of file regex.py.

◆ TAG_FAIL

str script.regex.TAG_FAIL = r"(?:LOG_TAG(?= )\s*[^\"=]+?=\s*)(?:[^\"=]+?|\"\s*\")\s*;"

Definition at line 11 of file regex.py.

◆ TAG_PASS

str script.regex.TAG_PASS = r"LOG_TAG(?= )\s*[^\"=]+?=\s*(\"\s*\S.*\")\s*;"

Definition at line 10 of file regex.py.