feat: Add function defs to DataStream DSL
This commit is contained in:
1 parent
0550078de0
commit
03294ffe37
55 files changed
+3332
-259
No files matched your search
@@ -0,0 +1,18 @@
|
||||
namespace Bts.DataStreamExpressions.Internal;
|
||||
|
||||
using System.Text;
|
||||
|
||||
partial class FunctionSignatureParser {
|
||||
public FunctionSignatureParser() : 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 FunctionSignatureScanner(stream);
|
||||
Parse();
|
||||
return CurrentSemanticValue;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user