17 lines
507 B
C#
17 lines
507 B
C#
namespace Bts.BooleanExpressions;
|
|
|
|
using Bts.ExpressionCore;
|
|
|
|
public static class BooleanExpressionParser {
|
|
public static IBooleanExpression Parse(Stream expression) =>
|
|
new Parser().Parse(expression);
|
|
|
|
public static IBooleanExpression Parse(string expression) =>
|
|
new Parser().Parse(expression);
|
|
|
|
class Parser : IParser<IBooleanExpression> {
|
|
public IBooleanExpression Parse(Stream expression) =>
|
|
new BooleanExpressionParserImpl().Parse(expression).BoundExpression;
|
|
}
|
|
}
|