pyccel.parser.extend_tree module#
Extended AST with CommentLine and CommentMultiLine nodes#
- class pyccel.parser.extend_tree.CommentLine(s, lineno, col_offset)[source]View on GitHub#
Bases:
AST“New AST node representing a comment line
- class pyccel.parser.extend_tree.CommentMultiLine(s, lineno, col_offset)[source]View on GitHub#
Bases:
CommentLine“New AST node representing a multi-line comment
- pyccel.parser.extend_tree.extend_tree(code)[source]View on GitHub#
- pyccel.parser.extend_tree.get_comments(code)[source]View on GitHub#
- pyccel.parser.extend_tree.get_last_lineno(ast)[source]View on GitHub#
- pyccel.parser.extend_tree.insert_comments(ast, comment_lines_no, comments, else_no, attr='body', col_offset=None)[source]View on GitHub#