Skip to content

Commit

Permalink
Merged origin/dev-next into 526-feature-add-full-object-support-and-t…
Browse files Browse the repository at this point in the history
…ranslation-for-jsts-targets
  • Loading branch information
ByteWolf-dev committed Jul 12, 2024
1 parent 9c14786 commit 3c365fc
Show file tree
Hide file tree
Showing 83 changed files with 3,146 additions and 2,669 deletions.
2 changes: 1 addition & 1 deletion kipper/config/src/evaluated-kipper-config-file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EvaluatedConfigValue } from "./abstract";
import type { EvaluatedConfigValue } from "./abstract";
import type { EvaluatedConfigFile } from "./abstract";
import type * as semver from "semver";
import type { CompileConfig, KipperCompileTarget } from "@kipper/core";
Expand Down
24 changes: 19 additions & 5 deletions kipper/core/KipperParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,25 @@ parameterDeclaration
;

interfaceDeclaration
: 'interface' Identifier '{' '}'
;
: 'interface' declarator '{' interfaceMemberDeclaration* '}'
;

interfaceMemberDeclaration
: interfacePropertyDeclaration
| interfaceMethodDeclaration
;

interfacePropertyDeclaration
: declarator ':' typeSpecifierExpression SemiColon
;

interfaceMethodDeclaration
: declarator '(' parameterList? ')' ':' typeSpecifierExpression SemiColon
;


classDeclaration
: 'class' Identifier '{' '}'
: 'class' declarator '{' '}'
;

// -- Statements
Expand Down Expand Up @@ -163,6 +177,7 @@ returnStatement

primaryExpression // Primary expressions, which build up the rest of the more complex expressions
: tangledPrimaryExpression
| lambdaPrimaryExpression
| arrayPrimaryExpression
| objectPrimaryExpression
| boolPrimaryExpression
Expand All @@ -171,10 +186,9 @@ primaryExpression // Primary expressions, which build up the rest of the more co
| fStringPrimaryExpression
| numberPrimaryExpression
| voidOrNullOrUndefinedPrimaryExpression
| lambdaExpression
;

lambdaExpression
lambdaPrimaryExpression
: '(' parameterList? ')' ':' typeSpecifierExpression '->' (expression | compoundStatement)
;

Expand Down
Loading

0 comments on commit 3c365fc

Please sign in to comment.