Classes | Functions | Variables
ros_introspection::cmake_parser Namespace Reference

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

Function Documentation

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.

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.


Variable Documentation

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.

Definition at line 7 of file cmake_parser.py.

Initial value:
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.



ros_introspection
Author(s):
autogenerated on Wed Jun 19 2019 19:21:34