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

Parse HyperTransition syntax #295

Merged
merged 7 commits into from
Aug 28, 2024

Conversation

alxkzmn
Copy link
Collaborator

@alxkzmn alxkzmn commented Aug 26, 2024

No description provided.

@@ -37,9 +37,9 @@ pub Statements: Vec<Statement<BigInt, Identifier>> = {
}

ParseStatement: Statement<BigInt, Identifier> = {
<l: @L> <s: StatementType> ";" <r: @R> => add_dsym(dsym_factory.create(l,r), s),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each statement type already has its own L and R parsing, so add_dsym wasn't needed anymore.

}

Call: Statement<BigInt, Identifier> = {
<l: @L> <ids: ParseIdsList> "<==" <machine: Identifier> "(" <es:ParseExpressionList> ")" <r: @R> => Statement::Call(dsym_factory.create(l,r), ids, machine, es),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a call can be part of an expression in general, probably in the future when we implement actual function calls, it should be an Expression and not an statement @alxkzmn

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, will implement.

@alxkzmn alxkzmn requested a review from leolara August 28, 2024 05:11
Copy link
Collaborator

@leolara leolara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some todos, that we should put in issues if they are not already. Perhaps you can put that they need spec'ing :-)

Approved

@alxkzmn alxkzmn merged commit 1d3f060 into chiquito-2024 Aug 28, 2024
4 checks passed
@alxkzmn alxkzmn deleted the 290-implement-lexerparser-for-hyper-transition branch August 28, 2024 09:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants