diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2015-11-30 02:11:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2015-11-30 02:12:20 -0700 |
| commit | 8f0f318c393b815d547ea00741d7b1ebf99eaffe (patch) | |
| tree | f5a80e8fb327f4da94a40cb3ae179dbf2c3ddf9a /README.md | |
| parent | ac0c5a3707c4a79c27e60242e44231cc05964f0f (diff) | |
| download | zig-8f0f318c393b815d547ea00741d7b1ebf99eaffe.tar.gz zig-8f0f318c393b815d547ea00741d7b1ebf99eaffe.zip | |
add directive to specify root export version
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -42,9 +42,6 @@ make ## Roadmap - * ability to specify version - * cli ability to override library export locations - * add test for building library * variables and parameters * Export .so library * Multiple files @@ -81,11 +78,11 @@ zig | C equivalent | Description ### Grammar ``` -Root : RootExportDecl many(TopLevelDecl) token(EOF) +Root : many(TopLevelDecl) token(EOF) -RootExportDecl : token(Export) token(Symbol) token(String) token(Semicolon) +TopLevelDecl : FnDef | ExternBlock | RootExportDecl -TopLevelDecl : FnDef | ExternBlock +RootExportDecl : many(Directive) token(Export) token(Symbol) token(String) token(Semicolon) ExternBlock : many(Directive) token(Extern) token(LBrace) many(FnDecl) token(RBrace) |
