Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
WildcardParser.cs
1using System;
3
5{
9 public class WildcardParser : IKeyWord
10 {
15 {
16 }
17
21 public string KeyWord => "*";
22
26 public string[] Aliases => null;
27
31 public string[] InternalKeywords => new string[0];
32
39 public bool TryParse(ScriptParser Parser, out ScriptNode Result)
40 {
41 Result = new Wildcard(Parser.Start, Parser.Length, Parser.Expression);
42 return true;
43 }
44
45 }
46}
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
Script parser, for custom parsers.
Definition: ScriptParser.cs:10
int Length
Length of script parsed
Definition: ScriptParser.cs:33
int Start
Start position in expression
Definition: ScriptParser.cs:28
Expression Expression
Expression being parsed.
Definition: ScriptParser.cs:43
bool TryParse(ScriptParser Parser, out ScriptNode Result)
Tries to parse a script node.
string[] Aliases
Keyword aliases, if available, null if none.
string KeyWord
Keyword associated with custom parser.
string[] InternalKeywords
Any keywords used internally by the custom parser.
Represents the Wildcard symbol *
Definition: Wildcard.cs:14
Interface for keywords with custom parsing.
Definition: IKeyWord.cs:9