class PythonParser
- PythonParser
- Reference
- Object
Defined in:
miniparsers/python.crConstructors
Instance Method Summary
-
#create_parser(path : Path, content : String = "") : PythonParser
Create a parser for the given path
- #debug_print(s)
- #extract_assign_data(index) : Tuple(String | Nil, String)
-
#get_parser(path : Path) : PythonParser
Get the parser for the given path
-
#normallize(index) : String
Normalize the string or fstring
- #parse
- #parse_global_variables
- #parse_import_statements(tokens : Array(Token))
- #path : String
- #path=(path : String)
- #print_line(index)
- #tokens : Array(Token)
- #tokens=(tokens : Array(Token))
Constructor Detail
def self.new(path : String, tokens : Array(Token), parsers : Hash(String, PythonParser), visited : Array(String) = Array(String).new)
#
Instance Method Detail
Create a parser for the given path