コード例 #1
0
ファイル: StateRule.cs プロジェクト: siva497/aotbrowser
 /// <summary>
 /// Initializes a new instance of the <see cref="StateRule"/> structure
 /// </summary>
 /// <remarks>
 /// Internal to force external plugins to use the builder
 /// </remarks>
 /// <param name="regex">The regular expression to attempt to match</param>
 /// <param name="tokenType">The type of token that should be emitted when matched</param>
 /// <param name="action">An action to take when matched</param>
 internal StateRule(Regex regex, TokenType tokenType, StateAction action)
 {
     Regex     = regex;
     TokenType = tokenType;
     Action    = action;
 }
コード例 #2
0
ファイル: StateRule.cs プロジェクト: akatakritos/PygmentSharp
 /// <summary>
 /// Initializes a new instance of the <see cref="StateRule"/> structure
 /// </summary>
 /// <remarks>
 /// Internal to force external plugins to use the builder
 /// </remarks>
 /// <param name="regex">The regular expression to attempt to match</param>
 /// <param name="tokenType">The type of token that should be emitted when matched</param>
 /// <param name="action">An action to take when matched</param>
 internal StateRule(Regex regex, TokenType tokenType, StateAction action)
 {
     Regex = regex;
     TokenType = tokenType;
     Action = action;
 }