Skip to content

[draft] componentType parser#24

Merged
ilonatommy merged 8 commits into
mainfrom
parse-component-type
Sep 14, 2023
Merged

[draft] componentType parser#24
ilonatommy merged 8 commits into
mainfrom
parse-component-type

Conversation

@pavelsavara

@pavelsavara pavelsavara commented Sep 13, 2023

Copy link
Copy Markdown
Owner

There are 2 component types in the mock model.

(type (;0;)
    (instance
      (type (;0;) (record (field "name" string) (field "head-count" u32) (field "budget" s64)))
      (export (;1;) "city-info" (type (eq 0)))
      (type (;2;) (func (param "message" string)))
      (export (;0;) "send-message" (func (type 2)))
    )
  )

AND

(type (;2;) (func (param "info" 1)))

This parser covers only the code paths required for parsing the static model that we use for tests. It means that it's not generalized for all use cases.

@ilonatommy ilonatommy marked this pull request as ready for review September 14, 2023 12:02
@ilonatommy ilonatommy merged commit ea4f765 into main Sep 14, 2023
@ilonatommy ilonatommy deleted the parse-component-type branch September 14, 2023 12:02
@ilonatommy ilonatommy mentioned this pull request Sep 14, 2023
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