1 using Mercury.Scanning;
2 using Mercury.Interpreting;
13 public class LanguageInfo<T>
31 if (
string.IsNullOrWhiteSpace(name))
throw new ArgumentException(
"Name is not valid");
36 RewriteRules = rwrules;
55 public string Name {
get;
private set; }
A default implementation of ITokenizer interface using Microsoft Regular Expressions. Splits tokens in the following fashion:
A read-only collection of rewrite rules
Scanner scans input tokens and creates additional rules for parsing.
LanguageInfo(string name, ITokenizer tokenizer, IScanner scanner, Grammar grammar, RewriteRuleCollection< T > rwrules)
Initializes a new instance of the LanguageInfo{T} class.
Represents a Context-Free Grammar. This is an immutable class, to create a grammar use Mercury...