- Add support for C-style for loops: for (init; condition; increment) { body }
- Implement three-level scoping: loop context + per-iteration contexts
- Add semicolon disabler for increment statements using RAII guards
- Support break/continue/return control flow with scope validation
- Fix semicolon handling in parser for flexible for-loop syntax
24 lines
686 B
C++
24 lines
686 B
C++
#pragma once
|
|
|
|
#include <Ast/astBase.hpp>
|
|
#include <Ast/AccessModifier.hpp>
|
|
#include <Ast/BinaryExpr.hpp>
|
|
#include <Ast/ContainerInitExprs.hpp>
|
|
#include <Ast/ControlSt.hpp>
|
|
#include <Ast/ExpressionStmt.hpp>
|
|
#include <Ast/ForSt.hpp>
|
|
#include <Ast/FunctionCall.hpp>
|
|
#include <Ast/functionParameters.hpp>
|
|
#include <Ast/FunctionDefSt.hpp>
|
|
#include <Ast/FunctionLiteralExpr.hpp>
|
|
#include <Ast/IfSt.hpp>
|
|
#include <Ast/ImplementSt.hpp>
|
|
#include <Ast/InitExpr.hpp>
|
|
#include <Ast/StructDefSt.hpp>
|
|
#include <Ast/TernaryExpr.hpp>
|
|
#include <Ast/UnaryExpr.hpp>
|
|
#include <Ast/ValueExpr.hpp>
|
|
#include <Ast/VarAssignSt.hpp>
|
|
#include <Ast/VarDef.hpp>
|
|
#include <Ast/VarExpr.hpp>
|
|
#include <Ast/WhileSt.hpp> |