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>(); }
static ScannerState() { RegularStatesLookup = AttributesHelper.GetLookUpTable <State, RegularStateAttribute>(); StreamStatesLookup = AttributesHelper.GetLookUpTable <State, StreamStateAttribute>(); }