Skip to content

Commands 클래스

dacoonkr edited this page Aug 15, 2020 · 1 revision

생성자

구조

{ 코드 }

예시

{ print("Hello, World!"); };

실행

구조

# 한번 실행
execute(<Commands 클래스>)

# 여러 번 실행
repeat(반복 횟수, <Commands 클래스>)

예시

alloc say_hello =         { print("Hello, World"); };
alloc exclamation_point = { print("!"); };

execute(say_hello);
repeat(5, exclamation_point);

#결과: Hello, World!!!!!
Clone this wiki locally