Skip to content

Commit 144959f

Browse files
WangdahaiWangdahai
authored andcommitted
acknowledgement
1 parent 1fe6692 commit 144959f

File tree

119 files changed

+476
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+476
-0
lines changed

src/common/Constant.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
export const enum Constant {
26
PROTOCOL_VERSION = 0,
37
PROTOCOL_MIN_VERSION = 0,

src/common/ds/MessageQueue.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
import { Queue } from "./Queue";
26

37
export class MessageQueue<T> {

src/common/ds/Queue.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
/**
26
* A stack-based queue implementation.
37
* `push` and `pop` run in amortized constant time.

src/common/ds/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
export { MessageQueue } from "./MessageQueue";
26
export { Queue } from "./Queue";

src/common/errors/ConductorError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
import { ErrorType } from "./ErrorType";
26

37
/**

src/common/errors/ConductorInternalError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
import { ConductorError } from "./ConductorError";
26
import { ErrorType } from "./ErrorType";
37

src/common/errors/ErrorType.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
export const enum ErrorType {
26
UNKNOWN = "__unknown",
37
INTERNAL = "__internal",

src/common/errors/EvaluatorError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
import { ConductorError } from "./ConductorError";
26
import { ErrorType } from "./ErrorType";
37

src/common/errors/EvaluatorRuntimeError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
import { ErrorType } from "./ErrorType";
26
import { EvaluatorError } from "./EvaluatorError";
37

src/common/errors/EvaluatorSyntaxError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is adapted from:
2+
// https://github.com/source-academy/conductor
3+
// Original author(s): Source Academy Team
4+
15
import { ErrorType } from "./ErrorType";
26
import { EvaluatorError } from "./EvaluatorError";
37

0 commit comments

Comments
 (0)