19 lines
472 B
C#
19 lines
472 B
C#
namespace Bts.ColumnSortExpressions;
|
|
|
|
using System.Text;
|
|
|
|
partial class ColumnSortExpressionParser {
|
|
public ColumnSortExpressionParser() : base(null) { }
|
|
|
|
public ValueType? Parse(string s) {
|
|
using var ms = new MemoryStream(Encoding.Default.GetBytes(s));
|
|
return Parse(ms);
|
|
}
|
|
|
|
public ValueType? Parse(Stream stream) {
|
|
Scanner = new ColumnSortExpressionScanner(stream);
|
|
Parse();
|
|
return CurrentSemanticValue;
|
|
}
|
|
}
|