21 namespace Deveel.Data.Sql.Parser {
28 return Parse(parser, inputStream, Encoding.Unicode);
32 if (inputStream == null)
33 throw new ArgumentNullException(
"inputStream");
34 if (!inputStream.CanRead)
35 throw new ArgumentException(
"The input stream cannot be read.",
"inputStream");
37 using (var reader =
new StreamReader(inputStream, encoding)) {
38 var text = reader.ReadToEnd();
39 return parser.
Parse(text);
The result of a parse of an SQL input
static SqlParseResult Parse(this ISqlParser parser, Stream inputStream, Encoding encoding)
Implementations of this interface will parse input strings into ISqlNode that can be used to construc...
Provides extensions to the ISqlParser interface instances.
SqlParseResult Parse(string input)
Analyzes and parses the input and results an object that describes the parsed nodes in a tree that ca...
static SqlParseResult Parse(this ISqlParser parser, Stream inputStream)