public static CodeCompileUnit ReadCompileUnitFrom(Stream stream, int line, int column, long position) { var tokenizer = new SlangTokenizer(stream); var pc = new _PC(tokenizer); pc.SetLocation(line, column, position); return(_ParseCompileUnit(pc)); }
public static CodeStatementCollection ReadStatementsFrom(Stream stream, int line, int column, long position, bool includeComments = false) { var tokenizer = new SlangTokenizer(stream); var pc = new _PC(tokenizer); pc.SetLocation(line, column, position); return(_ParseStatements(pc, includeComments)); }
public static CodeCompileUnit ParseCompileUnit(string text, int line, int column, long position) { var tokenizer = new SlangTokenizer(text); var pc = new _PC(tokenizer); pc.SetLocation(line, column, position); return(_ParseCompileUnit(pc)); }
public static CodeStatement ParseStatement(string text, int line, int column, long position, bool includeComments = false) { var tokenizer = new SlangTokenizer(text); var pc = new _PC(tokenizer); pc.SetLocation(line, column, position); return(_ParseStatement(pc, includeComments)); }
public static CodeCompileUnit ReadCompileUnitFrom(Stream stream) { var tokenizer = new SlangTokenizer(stream); return(ParseCompileUnit(tokenizer)); }
public static CodeCompileUnit ParseCompileUnit(string text) { var tokenizer = new SlangTokenizer(text); return(ParseCompileUnit(tokenizer)); }
public static CodeStatementCollection ReadStatementsFrom(Stream stream, bool includeComments = false) { var tokenizer = new SlangTokenizer(stream); return(ParseStatements(tokenizer, includeComments)); }
public static CodeStatementCollection ParseStatements(string text, bool includeComments = false) { var tokenizer = new SlangTokenizer(text); return(ParseStatements(tokenizer, includeComments)); }