-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontrolblocks.h
More file actions
34 lines (27 loc) · 1.21 KB
/
controlblocks.h
File metadata and controls
34 lines (27 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <scratchcpp/iextension.h>
namespace libscratchcpp
{
class ControlBlocks : public IExtension
{
public:
std::string name() const override;
std::string description() const override;
void registerBlocks(IEngine *engine) override;
private:
static CompilerValue *compileForever(Compiler *compiler);
static CompilerValue *compileRepeat(Compiler *compiler);
static CompilerValue *compileIf(Compiler *compiler);
static CompilerValue *compileIfElse(Compiler *compiler);
static CompilerValue *compileStop(Compiler *compiler);
static CompilerValue *compileWait(Compiler *compiler);
static CompilerValue *compileWaitUntil(Compiler *compiler);
static CompilerValue *compileRepeatUntil(Compiler *compiler);
static CompilerValue *compileWhile(Compiler *compiler);
static CompilerValue *compileForEach(Compiler *compiler);
static CompilerValue *compileStartAsClone(Compiler *compiler);
static CompilerValue *compileCreateCloneOf(Compiler *compiler);
static CompilerValue *compileDeleteThisClone(Compiler *compiler);
};
} // namespace libscratchcpp