예제 #1
0
        /// <summary>
        /// Parses the day expression.
        /// Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
        /// </summary>
        /// <returns></returns>
        public override Expr Parse()
        {
            EnvToken token = _tokenIt.NextToken.Token as EnvToken;
            var      expr  = new EnvExpr(token.Scope, token.VarName);

            _tokenIt.Advance();
            return(expr);
        }
예제 #2
0
 /// <summary>
 /// Parses the day expression.
 /// Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
 /// </summary>
 /// <returns></returns>
 public override Expr Parse()
 {
     EnvToken token = _tokenIt.NextToken.Token as EnvToken;
     var expr = new EnvExpr(token.Scope, token.VarName);
     _tokenIt.Advance();
     return expr;
 }