Classes | |
| class | AwesomeParser |
| class | CMakeParseError |
Functions | |
| def | match_command_groups |
| def | parse_command |
| def | parse_commands |
| def | parse_file |
| def | word_cb |
Variables | |
| tuple | ALL_CAPS = re.compile('^[A-Z_]+$') |
| list | ALL_WHITESPACE = ['whitespace', 'newline'] |
| list | NOT_REAL = ALL_WHITESPACE+['comment'] |
| tuple | scanner |
| def ros_introspection.cmake_parser.match_command_groups | ( | contents, | |
base_depth = 0 |
|||
| ) |
Definition at line 28 of file cmake_parser.py.
Definition at line 210 of file cmake_parser.py.
Definition at line 205 of file cmake_parser.py.
| def ros_introspection.cmake_parser.parse_file | ( | filename | ) |
Definition at line 216 of file cmake_parser.py.
| def ros_introspection.cmake_parser.word_cb | ( | scanner, | |
| token | |||
| ) |
Definition at line 10 of file cmake_parser.py.
| tuple ros_introspection::cmake_parser::ALL_CAPS = re.compile('^[A-Z_]+$') |
Definition at line 5 of file cmake_parser.py.
| list ros_introspection::cmake_parser::ALL_WHITESPACE = ['whitespace', 'newline'] |
Definition at line 6 of file cmake_parser.py.
| list ros_introspection::cmake_parser::NOT_REAL = ALL_WHITESPACE+['comment'] |
Definition at line 7 of file cmake_parser.py.
00001 re.Scanner([ 00002 (r'#.*\n', lambda scanner, token: ("comment", token)), 00003 (r'"[^"]*"', lambda scanner, token: ("string", token)), (r"\(", lambda scanner, token: ("left paren", token)), (r"\)", lambda scanner, token: ("right paren", token)), (r'[^ \t\r\n()#"]+', word_cb), 00004 (r'\n', lambda scanner, token: ("newline", token)), 00005 (r"[ \t]+", lambda scanner, token: ("whitespace", token)), 00006 ])
Definition at line 17 of file cmake_parser.py.