示例#1
0
 static Scanner()
 {
     ConstantTokensLookup = AttributesHelper.GetLookUpTable <Token, ConstantTokenAttribute>()
                            .ToDictionary(x => x.Value.ReservedWord, x => x.Key);
     PatternTokensLookup = AttributesHelper.GetLookUpTable <Token, PatternTokenAttribute>();
     IgnoredTokensLookup = AttributesHelper.GetLookUpTable <Token, IgnoredTokenAttribute>();
 }
示例#2
0
 static ScannerState()
 {
     RegularStatesLookup = AttributesHelper.GetLookUpTable <State, RegularStateAttribute>();
     StreamStatesLookup  = AttributesHelper.GetLookUpTable <State, StreamStateAttribute>();
 }