Skip to content

Instantly share code, notes, and snippets.

@Hejsil
Created October 19, 2018 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hejsil/f1800fb3f7ebf5f3463870a84dfee47e to your computer and use it in GitHub Desktop.
Save Hejsil/f1800fb3f7ebf5f3463870a84dfee47e to your computer and use it in GitHub Desktop.
........
Found a sentential form with two different derivations:
Keyword_pub Keyword_extern Keyword_fn FnProtoName ParamDeclList ByteAlign Section FnProtoInferredError FnProtoReturnType Block TopLevelItems
Derivation 1:
0: Root
1: TopLevelItems
2: TopLevelItem TopLevelItems
3: Keyword_pub TopLevelDecl TopLevelItems
4: Keyword_pub FnDef TopLevelItems
5: Keyword_pub FnDefCC FnProto Block TopLevelItems
6: Keyword_pub FnProto Block TopLevelItems
7: Keyword_pub FnProtoCC Keyword_fn FnProtoName ParamDeclList ByteAlign Section FnProtoInferredError FnProtoReturnType Block TopLevelItems
8: Keyword_pub Keyword_extern Keyword_fn FnProtoName ParamDeclList ByteAlign Section FnProtoInferredError FnProtoReturnType Block TopLevelItems
Derivation 2:
0: Root
1: TopLevelItems
2: TopLevelItem TopLevelItems
3: Keyword_pub TopLevelDecl TopLevelItems
4: Keyword_pub FnDef TopLevelItems
5: Keyword_pub FnDefCC FnProto Block TopLevelItems
6: Keyword_pub Keyword_extern FnProto Block TopLevelItems
7: Keyword_pub Keyword_extern FnProtoCC Keyword_fn FnProtoName ParamDeclList ByteAlign Section FnProtoInferredError FnProtoReturnType Block TopLevelItems
8: Keyword_pub Keyword_extern Keyword_fn FnProtoName ParamDeclList ByteAlign Section FnProtoInferredError FnProtoReturnType Block TopLevelItems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment