Classes | Functions | Variables
ros_introspection.cmake_parser Namespace Reference

Classes

class  AwesomeParser
 
class  CMakeParseError
 

Functions

def match_command_groups (contents, base_depth=0)
 
def parse_command (s)
 
def parse_commands (s)
 
def parse_file (filename)
 
def word_cb (scanner, token)
 

Variables

 ALL_CAPS = re.compile('^[A-Z_]+$')
 
list ALL_WHITESPACE = ['whitespace', 'newline']
 
 NOT_REAL = ALL_WHITESPACE+['comment']
 
 scanner
 

Function Documentation

def ros_introspection.cmake_parser.match_command_groups (   contents,
  base_depth = 0 
)

Definition at line 28 of file cmake_parser.py.

def ros_introspection.cmake_parser.parse_command (   s)

Definition at line 210 of file cmake_parser.py.

def ros_introspection.cmake_parser.parse_commands (   s)

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.

Variable Documentation

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.

ros_introspection.cmake_parser.NOT_REAL = ALL_WHITESPACE+['comment']

Definition at line 7 of file cmake_parser.py.

ros_introspection.cmake_parser.scanner
Initial value:
1 = re.Scanner([
2  (r'#.*\n', lambda scanner, token: ("comment", token)),
3  (r'"[^"]*"', lambda scanner, token: ("string", token)),
4  (r"\(", lambda scanner, token: ("left paren", token)),
5  (r"\)", lambda scanner, token: ("right paren", token)),
6  (r'[^ \t\r\n()#"]+', word_cb),
7  (r'\n', lambda scanner, token: ("newline", token)),
8  (r"[ \t]+", lambda scanner, token: ("whitespace", token)),
9 ])

Definition at line 17 of file cmake_parser.py.



ros_introspection
Author(s):
autogenerated on Wed Jun 19 2019 19:56:52