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));
        }
Example #2
0
        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));
        }
Example #4
0
        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));
        }
Example #7
0
        public static CodeStatementCollection ReadStatementsFrom(Stream stream, bool includeComments = false)
        {
            var tokenizer = new SlangTokenizer(stream);

            return(ParseStatements(tokenizer, includeComments));
        }
Example #8
0
        public static CodeStatementCollection ParseStatements(string text, bool includeComments = false)
        {
            var tokenizer = new SlangTokenizer(text);

            return(ParseStatements(tokenizer, includeComments));
        }