class PythonParser

Defined in:

miniparsers/python.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, tokens : Array(Token), parsers : Hash(String, PythonParser), visited : Array(String) = Array(String).new) #

[View source]

Instance Method Detail

def create_parser(path : Path, content : String = "") : PythonParser #

Create a parser for the given path


[View source]
def debug_print(s) #

[View source]
def extract_assign_data(index) : Tuple(String | Nil, String) #

[View source]
def get_parser(path : Path) : PythonParser #

Get the parser for the given path


[View source]
def normallize(index) : String #

Normalize the string or fstring


[View source]
def parse #

[View source]
def parse_global_variables #

[View source]
def parse_import_statements(tokens : Array(Token)) #

[View source]
def path : String #

[View source]
def path=(path : String) #

[View source]
def print_line(index) #

[View source]
def tokens : Array(Token) #

[View source]
def tokens=(tokens : Array(Token)) #

[View source]