19 lines
456 B
C#
19 lines
456 B
C#
namespace Bts.ColumnExpressions;
|
|
|
|
using System.Text;
|
|
|
|
partial class ColumnExpressionParser {
|
|
public ColumnExpressionParser() : 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 ColumnExpressionScanner(stream);
|
|
Parse();
|
|
return CurrentSemanticValue;
|
|
}
|
|
}
|