pyccel.parser.extend_tree module#

Extended AST with CommentLine and CommentMultiLine nodes#

class pyccel.parser.extend_tree.CommentLine(s, lineno, col_offset)[source]#

Bases: AST

“New AST node representing a comment line

class pyccel.parser.extend_tree.CommentMultiLine(s, lineno, col_offset)[source]#

Bases: CommentLine

“New AST node representing a multi-line comment

pyccel.parser.extend_tree.extend_tree(code)[source]#
pyccel.parser.extend_tree.get_comments(code)[source]#
pyccel.parser.extend_tree.get_last_lineno(ast)[source]#
pyccel.parser.extend_tree.insert_comments(ast, comment_lines_no, comments, else_no, attr='body', col_offset=None)[source]#