Exemplo n.º 1
0
        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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 5
0
        public static CodeCompileUnit ReadCompileUnitFrom(Stream stream)
        {
            var tokenizer = new SlangTokenizer(stream);

            return(ParseCompileUnit(tokenizer));
        }
Exemplo n.º 6
0
        public static CodeCompileUnit ParseCompileUnit(string text)
        {
            var tokenizer = new SlangTokenizer(text);

            return(ParseCompileUnit(tokenizer));
        }
Exemplo n.º 7
0
        public static CodeStatementCollection ReadStatementsFrom(Stream stream, bool includeComments = false)
        {
            var tokenizer = new SlangTokenizer(stream);

            return(ParseStatements(tokenizer, includeComments));
        }
Exemplo n.º 8
0
        public static CodeStatementCollection ParseStatements(string text, bool includeComments = false)
        {
            var tokenizer = new SlangTokenizer(text);

            return(ParseStatements(tokenizer, includeComments));
        }