示例#1
0
        public object VisitBreakStmt(Stmt.Break stmt)
        {
            if (stmt.Loop == null)
            {
                breaking = 1;
            }
            else
            {
                breaking = (int)(double)stmt.Loop.Literal;
            }

            return(null);
        }
示例#2
0
 public Unit VisitBreakStmt(Stmt.Break stmt)
 {
     return(new Unit());
 }
 public object VisitBreakStmt(Stmt.Break stmt)
 {
     return(null);
 }
示例#4
0
 public LoxVoid VisitBreakStmt(Stmt.Break stmt)
 {
     throw new Break();
 }
示例#5
0
 public IEnumerable <string> VisitBreakStmt(Stmt.Break stmt)
 {
     yield return("break;");
 }
示例#6
0
 public Stmt VisitBreakStmt(Stmt.Break stmt)
 {
     throw new NotImplementedException();
 }
 public object VisitBreakStmt(Stmt.Break stmt)
 {
     throw new BreakException();
 }
示例#8
0
文件: Resolver.cs 项目: jukaLang/Juka
 public object VisitBreakStmt(Stmt.Break stmt)
 {
     Stmt.Return returnStatement = new Stmt.Return(null, null);
     return(VisitReturnStmt(returnStatement));
 }
示例#9
0
 public LoxVoid VisitBreakStmt(Stmt.Break stmt)
 {
     return(null);
 }