Skip to content

Commit

Permalink
Merge pull request #946 from taichi-ishitani/remove_inital_final_from…
Browse files Browse the repository at this point in the history
…_package

Remove `initial` and `final` declarations from package item
  • Loading branch information
dalance authored Sep 6, 2024
2 parents a4f914f + ffa2063 commit 204dc88
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 345 deletions.
70 changes: 34 additions & 36 deletions crates/parser/src/generated/veryl-exp.par
Original file line number Diff line number Diff line change
Expand Up @@ -944,39 +944,37 @@
/* 929 */ PackageItem: FunctionDeclaration;
/* 930 */ PackageItem: ImportDeclaration;
/* 931 */ PackageItem: ExportDeclaration;
/* 932 */ PackageItem: InitialDeclaration;
/* 933 */ PackageItem: FinalDeclaration;
/* 934 */ ProtoModuleDeclaration: ProtoModuleDeclarationOpt /* Option */ Proto Module Identifier ProtoModuleDeclarationOpt0 /* Option */ ProtoModuleDeclarationOpt1 /* Option */ Semicolon;
/* 935 */ ProtoModuleDeclarationOpt1 /* Option<T>::Some */: PortDeclaration;
/* 936 */ ProtoModuleDeclarationOpt1 /* Option<T>::None */: ;
/* 937 */ ProtoModuleDeclarationOpt0 /* Option<T>::Some */: WithParameter;
/* 938 */ ProtoModuleDeclarationOpt0 /* Option<T>::None */: ;
/* 939 */ ProtoModuleDeclarationOpt /* Option<T>::Some */: Pub;
/* 940 */ ProtoModuleDeclarationOpt /* Option<T>::None */: ;
/* 941 */ EmbedDeclaration: Embed LParen Identifier RParen Identifier EmbedContent;
/* 942 */ EmbedContent: EmbedContentToken : VerylToken;
/* 943 */ EmbedContentToken: LBraceTerm %push(Embed) LBraceTerm LBraceTerm EmbedContentTokenList /* Vec */ RBraceTerm RBraceTerm RBraceTerm %pop() Comments;
/* 944 */ EmbedContentTokenList /* Vec<T>::Push */: EmbedItem EmbedContentTokenList;
/* 945 */ EmbedContentTokenList /* Vec<T>::New */: ;
/* 946 */ EmbedItem: LBraceTerm EmbedItemList /* Vec */ RBraceTerm;
/* 947 */ EmbedItemList /* Vec<T>::Push */: EmbedItem EmbedItemList;
/* 948 */ EmbedItemList /* Vec<T>::New */: ;
/* 949 */ EmbedItem: AnyTerm;
/* 950 */ IncludeDeclaration: Include LParen Identifier Comma StringLiteral RParen Semicolon;
/* 951 */ DescriptionGroup: DescriptionGroupList /* Vec */ DescriptionGroupGroup;
/* 952 */ DescriptionGroupGroup: LBrace DescriptionGroupGroupList /* Vec */ RBrace;
/* 953 */ DescriptionGroupGroupList /* Vec<T>::Push */: DescriptionGroup DescriptionGroupGroupList;
/* 954 */ DescriptionGroupGroupList /* Vec<T>::New */: ;
/* 955 */ DescriptionGroupGroup: DescriptionItem;
/* 956 */ DescriptionGroupList /* Vec<T>::Push */: Attribute DescriptionGroupList;
/* 957 */ DescriptionGroupList /* Vec<T>::New */: ;
/* 958 */ DescriptionItem: ModuleDeclaration;
/* 959 */ DescriptionItem: InterfaceDeclaration;
/* 960 */ DescriptionItem: PackageDeclaration;
/* 961 */ DescriptionItem: ProtoModuleDeclaration;
/* 962 */ DescriptionItem: ImportDeclaration;
/* 963 */ DescriptionItem: EmbedDeclaration;
/* 964 */ DescriptionItem: IncludeDeclaration;
/* 965 */ Veryl: Start VerylList /* Vec */;
/* 966 */ VerylList /* Vec<T>::Push */: DescriptionGroup VerylList;
/* 967 */ VerylList /* Vec<T>::New */: ;
/* 932 */ ProtoModuleDeclaration: ProtoModuleDeclarationOpt /* Option */ Proto Module Identifier ProtoModuleDeclarationOpt0 /* Option */ ProtoModuleDeclarationOpt1 /* Option */ Semicolon;
/* 933 */ ProtoModuleDeclarationOpt1 /* Option<T>::Some */: PortDeclaration;
/* 934 */ ProtoModuleDeclarationOpt1 /* Option<T>::None */: ;
/* 935 */ ProtoModuleDeclarationOpt0 /* Option<T>::Some */: WithParameter;
/* 936 */ ProtoModuleDeclarationOpt0 /* Option<T>::None */: ;
/* 937 */ ProtoModuleDeclarationOpt /* Option<T>::Some */: Pub;
/* 938 */ ProtoModuleDeclarationOpt /* Option<T>::None */: ;
/* 939 */ EmbedDeclaration: Embed LParen Identifier RParen Identifier EmbedContent;
/* 940 */ EmbedContent: EmbedContentToken : VerylToken;
/* 941 */ EmbedContentToken: LBraceTerm %push(Embed) LBraceTerm LBraceTerm EmbedContentTokenList /* Vec */ RBraceTerm RBraceTerm RBraceTerm %pop() Comments;
/* 942 */ EmbedContentTokenList /* Vec<T>::Push */: EmbedItem EmbedContentTokenList;
/* 943 */ EmbedContentTokenList /* Vec<T>::New */: ;
/* 944 */ EmbedItem: LBraceTerm EmbedItemList /* Vec */ RBraceTerm;
/* 945 */ EmbedItemList /* Vec<T>::Push */: EmbedItem EmbedItemList;
/* 946 */ EmbedItemList /* Vec<T>::New */: ;
/* 947 */ EmbedItem: AnyTerm;
/* 948 */ IncludeDeclaration: Include LParen Identifier Comma StringLiteral RParen Semicolon;
/* 949 */ DescriptionGroup: DescriptionGroupList /* Vec */ DescriptionGroupGroup;
/* 950 */ DescriptionGroupGroup: LBrace DescriptionGroupGroupList /* Vec */ RBrace;
/* 951 */ DescriptionGroupGroupList /* Vec<T>::Push */: DescriptionGroup DescriptionGroupGroupList;
/* 952 */ DescriptionGroupGroupList /* Vec<T>::New */: ;
/* 953 */ DescriptionGroupGroup: DescriptionItem;
/* 954 */ DescriptionGroupList /* Vec<T>::Push */: Attribute DescriptionGroupList;
/* 955 */ DescriptionGroupList /* Vec<T>::New */: ;
/* 956 */ DescriptionItem: ModuleDeclaration;
/* 957 */ DescriptionItem: InterfaceDeclaration;
/* 958 */ DescriptionItem: PackageDeclaration;
/* 959 */ DescriptionItem: ProtoModuleDeclaration;
/* 960 */ DescriptionItem: ImportDeclaration;
/* 961 */ DescriptionItem: EmbedDeclaration;
/* 962 */ DescriptionItem: IncludeDeclaration;
/* 963 */ Veryl: Start VerylList /* Vec */;
/* 964 */ VerylList /* Vec<T>::Push */: DescriptionGroup VerylList;
/* 965 */ VerylList /* Vec<T>::New */: ;
Loading

0 comments on commit 204dc88

Please sign in to comment.