Exemplo n.º 1
0
 /// <summary> Creates a Words object for lexing the operators with names specified in ops,
 /// and for lexing the keywords case sensitively.
 /// Keywords and operators are lexed as TokenReserved.
 /// Words that are not among the keywords are lexed as TokenWord.
 /// </summary>
 /// <param name="wscanner">the scanner for a word in the language.
 /// </param>
 /// <param name="ops">the operator names.
 /// </param>
 /// <param name="keywords">the keyword names.
 /// </param>
 /// <param name="toWord">the FromString object used to create a token for non-key words recognized by wscanner.
 /// </param>
 /// <returns> the Words instance.
 /// </returns>
 public static Words GetCaseSensitive(Scanner wscanner, string[] ops, string[] keywords,
                                      FromString toWord)
 {
     return(Words.getCaseSensitive(wscanner, ops, keywords, toWord));
 }
Exemplo n.º 2
0
 /// <summary> Creates a Words object for lexing the operators with names specified in ops,
 /// and for lexing the keywords case insensitively.
 /// Keywords and operators are lexed as TokenReserved.
 /// Words that are not among the keywords are lexed as TokenWord.
 /// </summary>
 /// <param name="wscanner">the scanner for a word in the language.
 /// </param>
 /// <param name="ops">the operator names.
 /// </param>
 /// <param name="keywords">the keyword names.
 /// </param>
 /// <returns> the Words instance.
 /// </returns>
 public static Words GetCaseInsensitive(Scanner wscanner, string[] ops, string[] keywords)
 {
     return(Words.getCaseInsensitive(wscanner, ops, keywords));
 }
Exemplo n.º 3
0
 /// <summary> Creates a Words object for lexing the operators with names specified in ops.
 /// Operators are lexed as TokenReserved.
 /// </summary>
 /// <param name="ops">the operator names.
 /// </param>
 /// <returns> the Words instance.
 /// </returns>
 public static Words GetOperators(params string[] ops)
 {
     return(Words.getOperators(ops));
 }
Exemplo n.º 4
0
 /// <summary> Creates a Words object for lexing the operators with names specified in ops,
 /// and for lexing the keywords case sensitively.
 /// Keywords and operators are lexed as TokenReserved.
 /// Words that are not among the keywords are lexed as TokenWord.
 /// A word is defined as an alpha numeric string that starts with [_a-zA-Z],
 /// with 0 or more [0-9_a-zA-Z] following.
 /// </summary>
 /// <param name="ops">the operator names.
 /// </param>
 /// <param name="keywords">the keyword names.
 /// </param>
 /// <returns> the Words instance.
 /// </returns>
 public static Words GetCaseSensitive(string[] ops, string[] keywords)
 {
     return(Words.getCaseSensitive(ops, keywords));
 }
Exemplo n.º 5
0
 Terms(Words words)
 {
     this.words = words;
 }