Skip to content

Commit 24e2a5c

Browse files
committed
fix(grammar): fix minor grammar issues
1 parent 523cbe5 commit 24e2a5c

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed

src/main/gen/org/tonstudio/tact/lang/TactParser.java

Lines changed: 14 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/org/tonstudio/tact/lang/psi/TactConstDeclaration.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/org/tonstudio/tact/lang/psi/TactFunctionDeclaration.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/org/tonstudio/tact/lang/psi/impl/TactConstDeclarationImpl.java

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/org/tonstudio/tact/lang/psi/impl/TactFunctionDeclarationImpl.java

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/kotlin/org/tonstudio/tact/lang/grammar/tact.bnf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private MembersRecover ::= !(
332332
)
333333

334334
ConstantModifier ::= virtual | override | abstract
335-
ConstDeclaration ::= ConstantModifier* const ConstDefinition ';' {pin=2}
335+
ConstDeclaration ::= ConstantModifier* const ConstDefinition semi {pin=2}
336336

337337
ConstDefinition ::= identifier TypeHint ('=' Expression)? {
338338
pin=1
@@ -411,7 +411,7 @@ FieldDefinition ::= identifier {
411411
stubClass="org.tonstudio.tact.lang.stubs.TactFieldDefinitionStub"
412412
}
413413

414-
FunctionDeclaration ::= Attributes? FunctionAttribute* fun identifier Signature (Block | ';') {
414+
FunctionDeclaration ::= Attributes? FunctionAttribute* fun identifier Signature (Block | semi) {
415415
pin=5
416416
stubClass="org.tonstudio.tact.lang.stubs.TactFunctionDeclarationStub"
417417
methods=[getName getTypeInner isGet isAbstract isVirtual computeMethodId]
@@ -496,7 +496,7 @@ AsmPrimitive ::=
496496

497497
AsmSequence ::= '<''{' AsmExpression* ('}''>' ('c' | 's' | 'CONT')? | )
498498

499-
AsmString ::= ('abort' | '.' | '+') StringLiteral
499+
AsmString ::= ('abort' | '.' | '+')? StringLiteral
500500

501501
AsmHexBitstring ::= HEX_LITERAL
502502
AsmBinBitstring ::= BIN_LITERAL

0 commit comments

Comments
 (0)