Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
chore: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Apr 26, 2024
1 parent 4f806f4 commit 290049e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Check out **[examples/](https://github.com/p-programming-language/plang/tree/mai
### Installation using NPM:
```bash
npm i -g @p-lang/plang
```
```
### Custom install / self building
```bash
git clone https://github.com/p-programming-language/plang && cd plang
Expand Down Expand Up @@ -85,4 +85,4 @@ yarn run <tool>
- Type casting (`value as T`)
- Throw statement
- Switch statement
- Classes (in progress)
- Classes (in progress, someone else do this shit)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/runtime/hooked-exceptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ namespace HookedException {
}
}

export default HookedException;
export = HookedException;
12 changes: 6 additions & 6 deletions src/runtime/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ import IntrinsicExtension from "./intrinsics/value-extensions";
import AST from "../code-analysis/parser/ast";

import { LiteralExpression } from "../code-analysis/parser/ast/expressions/literal";
import { BinaryExpression } from "../code-analysis/parser/ast/expressions/binary";
import { IdentifierExpression } from "../code-analysis/parser/ast/expressions/identifier";
import { CompoundAssignmentExpression } from "../code-analysis/parser/ast/expressions/compound-assignment";
import { VariableAssignmentExpression } from "../code-analysis/parser/ast/expressions/variable-assignment";
import { PropertyAssignmentExpression } from "../code-analysis/parser/ast/expressions/property-assignment";
import { BlockStatement } from "../code-analysis/parser/ast/statements/block";
import type { StringInterpolationExpression } from "../code-analysis/parser/ast/expressions/string-interpolation";
import type { RangeLiteralExpression } from "../code-analysis/parser/ast/expressions/range-literal";
import type { ArrayLiteralExpression } from "../code-analysis/parser/ast/expressions/array-literal";
import type { ObjectLiteralExpression } from "../code-analysis/parser/ast/expressions/object-literal";
import type { ParenthesizedExpression } from "../code-analysis/parser/ast/expressions/parenthesized";
import type { UnaryExpression } from "../code-analysis/parser/ast/expressions/unary";
import { BinaryExpression } from "../code-analysis/parser/ast/expressions/binary";
import type { TernaryExpression } from "../code-analysis/parser/ast/expressions/ternary";
import { IdentifierExpression } from "../code-analysis/parser/ast/expressions/identifier";
import { CompoundAssignmentExpression } from "../code-analysis/parser/ast/expressions/compound-assignment";
import { VariableAssignmentExpression } from "../code-analysis/parser/ast/expressions/variable-assignment";
import { PropertyAssignmentExpression } from "../code-analysis/parser/ast/expressions/property-assignment";
import type { CallExpression } from "../code-analysis/parser/ast/expressions/call";
import type { AccessExpression } from "../code-analysis/parser/ast/expressions/access";
import type { IsExpression } from "../code-analysis/parser/ast/expressions/is";
Expand All @@ -50,7 +51,6 @@ import type { NewExpression } from "../code-analysis/parser/ast/expressions/new"
import type { ExpressionStatement } from "../code-analysis/parser/ast/statements/expression";
import type { VariableAssignmentStatement } from "../code-analysis/parser/ast/statements/variable-assignment";
import type { VariableDeclarationStatement } from "../code-analysis/parser/ast/statements/variable-declaration";
import { BlockStatement } from "../code-analysis/parser/ast/statements/block";
import type { IfStatement } from "../code-analysis/parser/ast/statements/if";
import type { WhileStatement } from "../code-analysis/parser/ast/statements/while";
import type { FunctionDeclarationStatement } from "../code-analysis/parser/ast/statements/function-declaration";
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/values/callable.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ValueType } from "../../code-analysis/type-checker";
import { generateAddress } from "../../utility";
import type { Range } from "./range";
import type Intrinsic from "./intrinsic";
import PValue from "./value";
import { generateAddress } from "../../utility";

export const enum CallableType {
Function,
Expand Down
5 changes: 1 addition & 4 deletions src/runtime/values/class-instance.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Range } from "./range";
import { MethodDeclarationStatement } from "../../code-analysis/parser/ast/statements/method-declaration";
import { generateAddress, getTypeFromTypeRef } from "../../utility";
import { generateAddress } from "../../utility";
import type { ValueType } from "../../code-analysis/type-checker";
import type { VariableDeclarationStatement } from "../../code-analysis/parser/ast/statements/variable-declaration";
import type PClass from "./class";
import type Interpreter from "../interpreter";
import type Scope from "../scope";
Expand Down
5 changes: 2 additions & 3 deletions src/runtime/values/intrinsic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import toCamelCase from "to-camel-case";
import util from "util";

import { Callable, CallableType } from "./callable";
import type { ClassMemberSignature, ObjectType, ValueType } from "../../code-analysis/type-checker";
import type { Type } from "../../code-analysis/type-checker/types/type";
import { Constructable, ConstructableType } from "./constructable";
import { Range } from "./range";
import { generateAddress, getTypeFromTypeRef } from "../../utility";

import type { ClassMemberSignature, ObjectType, ValueType } from "../../code-analysis/type-checker";
import type { Type } from "../../code-analysis/type-checker/types/type";
import type Intrinsics from "../intrinsics";
import type Interpreter from "../interpreter";
import type Injectable from "../intrinsics/injectable";
Expand Down

0 comments on commit 290049e

Please sign in to comment.