32 #ifndef _QORE_BREAKSTATEMENT_H
34 #define _QORE_BREAKSTATEMENT_H
36 #include "qore/intern/AbstractStatement.h"
38 class BreakStatement :
public AbstractStatement {
40 DLLLOCAL BreakStatement(
int start_line,
int end_line) : AbstractStatement(start_line, end_line) {
43 DLLLOCAL
virtual ~BreakStatement() {
46 DLLLOCAL
virtual bool endsBlock()
const {
55 DLLLOCAL
virtual int parseInitImpl(QoreParseContext& parse_context) {
56 if (!(parse_context.pflag & PF_BREAK_OK)) {
58 parseException(*loc,
"BREAK-NOT-ALLOWED",
"break statements are only allowed in switch and loop " \
#define PO_BROKEN_LOOP_STATEMENT
allow for old pre-Qore 0.8.13 handling of break and continue
Definition: Restrictions.h:83
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275