Closed eval-exec closed 1 year ago
Could you explain the motive to add syntax version?
Could you explain the motive to add syntax version?
It's like Protocol Buffers' syntax
identifier, https://protobuf.dev/reference/protobuf/proto3-spec/#syntax
The "molecule primitive types #62" feature will add uint{8,16,32,64}, int{8,16,32,64} and bool
as primary types, so we need the syntax
identifier to tell molecule
whether to treat these types as primitive types
or not.
Rebased on master branch. Ready for review. @quake
This PR want to make molecule support syntax version identifier.
We can specify
syntax = {version}
now.1
by default.syntax = 1
schema file can't importsyntax = 2
file, andsyntax = 2
file can't importsyntax = 1
schema file either.@yangby-cryptape @driftluo @code-monad @zhangsoledad Invite you to review this PR.