This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v6; | |
| module C::CAST; | |
| class TranslationUnit { | |
| has ExternalDeclaration @decls; | |
| } | |
| class ExternalDeclaration { | |
| } | |
| class Declaration is ExternalDeclaration { | |
| has DeclarationSpecifier @modifiers; | |
| has InitDeclarator @inits; | |
| } | |
| class FunctionDecl is ExternalDeclaration { | |
| has DeclarationSpecifier @modifiers; | |
| has Declarator $head; | |
| has Declaration @ancients; | |
| has Statement $body; | |
| } | |
| class AssemblyDecl is ExternalDeclaration { | |
| has Str $literal; | |
| } | |
| class InitDeclarator { | |
| has Declarator $decl; | |
| has Initializer $init; | |
| has Expression $expr; | |
| } | |
| class DeclarationSpecifier {} | |
| class StorageSpecifier is DeclarationSpecifier { | |
| } | |
| class TypeSpecifier is DeclarationSpecifier { | |
| } | |
| class TypeQualifier is DeclarationSpecifier { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment