Ejemplo n.º 1
0
 private Boolean applyStartToken(PatternTypes checkPattern, string token)
 {
     if (checkPattern.useIdentChecker)
     {
         checkPattern.currentContent = token;
         return(checkPattern.checkStart());
     }
     else
     {
         return(checkPattern.startident == token);
     }
 }
Ejemplo n.º 2
0
        private void scan()
        {
            Regex r = new Regex("([= \\t{}()<>:;+-/*,'])");

            this.scanTokens = r.Split(this.scanText);
            foreach (string token in this.scanTokens)
            {
                if (token.Length > 0)
                {
                    PatternTypes addPattern = this.checkToken(token);

                    // a pattern was found
                    if (null != addPattern)
                    {
                        if (addPattern.scanReverse)
                        {
                        }
                    }
                }
            }
        }