Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor parsing #26

Merged
merged 15 commits into from
Oct 5, 2023
Merged

chore: refactor parsing #26

merged 15 commits into from
Oct 5, 2023

Conversation

albertolerda
Copy link
Member

No description provided.

albertolerda and others added 15 commits September 25, 2023 23:58
For the http module a parser is useful, but it is really difficult to use the same parser
and in @slangroom/core

Thus, for the moment the parsing is done in two different times
1. @slangroom/core extract the clauses using a parser (and build an AST)
2. During the interpretation of AST each clause is analyzed by another parser
   which is specific to each module.
More tests when we can run a full zencode contract
For the moment I am using one file for each verb (e.g. read.ts and connect.ts).
The result is that connect is a parser that matches only one sentence.
@albertolerda albertolerda merged commit b61963d into main Oct 5, 2023
6 of 8 checks passed
@denizenging denizenging deleted the refactor-parsing branch October 6, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants