Skip to content

Instantly share code, notes, and snippets.

@SupunS
Last active October 23, 2024 20:15
Show Gist options
  • Save SupunS/3efb34060cf6cc43fa292e33cd51c839 to your computer and use it in GitHub Desktop.
Save SupunS/3efb34060cf6cc43fa292e33cd51c839 to your computer and use it in GitHub Desktop.

Identifier

  identifier
    : ....
    ;

Access

  accessModifier
    : 'access' '(' entity ')'
    ;

  entity
    : 'all' | 'self' | 'contract' | 'account' | identifier
    ;

Struct Declaration

  structDeclaration
    : accessModifier 'struct' identifier conformances? '{' membersAndNestedDeclarations '}'
    ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment