コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #5
0
        public static CodeCompileUnit ReadCompileUnitFrom(Stream stream)
        {
            var tokenizer = new SlangTokenizer(stream);

            return(ParseCompileUnit(tokenizer));
        }
コード例 #6
0
        public static CodeCompileUnit ParseCompileUnit(string text)
        {
            var tokenizer = new SlangTokenizer(text);

            return(ParseCompileUnit(tokenizer));
        }
コード例 #7
0
        public static CodeStatementCollection ReadStatementsFrom(Stream stream, bool includeComments = false)
        {
            var tokenizer = new SlangTokenizer(stream);

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

            return(ParseStatements(tokenizer, includeComments));
        }