17 lines
503 B
C#
17 lines
503 B
C#
namespace Bts.ArithmeticExpressions;
|
|
|
|
using Bts.ExpressionCore;
|
|
|
|
public static class ArithmeticProgramParser {
|
|
public static IArithmeticProgram Parse(Stream expression) =>
|
|
new Parser().Parse(expression);
|
|
|
|
public static IArithmeticProgram Parse(string expression) =>
|
|
new Parser().Parse(expression);
|
|
|
|
class Parser : IParser<ArithmeticProgram> {
|
|
public ArithmeticProgram Parse(Stream expression) =>
|
|
new ArithmeticExpressionParserImpl().Parse(expression).Program;
|
|
}
|
|
}
|