diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-12-18 09:59:57 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-12-18 09:59:57 -0500 |
| commit | 1fdebc1dc4881a00766f7c2b4b2d8ee6ad6e79b6 (patch) | |
| tree | c6dc0f8f2ce01f7d38d1c5921eaa11f2d163c589 /doc | |
| parent | 68f63323437e1b974be7a9982f5d70b95624878b (diff) | |
| download | zig-1fdebc1dc4881a00766f7c2b4b2d8ee6ad6e79b6.tar.gz zig-1fdebc1dc4881a00766f7c2b4b2d8ee6ad6e79b6.zip | |
wip export rewrite
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index e5b896410d..f302cbec5d 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -5815,13 +5815,13 @@ TopLevelItem = ErrorValueDecl | CompTimeExpression(Block) | TopLevelDecl | TestD TestDecl = "test" String Block -TopLevelDecl = option(VisibleMod) (FnDef | ExternDecl | GlobalVarDecl | UseDecl) +TopLevelDecl = option("pub") (FnDef | ExternDecl | GlobalVarDecl | UseDecl) ErrorValueDecl = "error" Symbol ";" GlobalVarDecl = VariableDeclaration ";" -VariableDeclaration = option("comptime") ("var" | "const") Symbol option(":" TypeExpr) option("align" "(" Expression ")") "=" Expression +VariableDeclaration = option("comptime") ("var" | "const") Symbol option(":" TypeExpr) option("align" "(" Expression ")") option("section" "(" Expression ")") "=" Expression ContainerMember = (ContainerField | FnDef | GlobalVarDecl) @@ -5831,9 +5831,7 @@ UseDecl = "use" Expression ";" ExternDecl = "extern" option(String) (FnProto | VariableDeclaration) ";" -FnProto = option("coldcc" | "nakedcc" | "stdcallcc") "fn" option(Symbol) ParamDeclList option("align" "(" Expression ")") option("->" TypeExpr) - -VisibleMod = "pub" | "export" +FnProto = option("coldcc" | "nakedcc" | "stdcallcc") "fn" option(Symbol) ParamDeclList option("align" "(" Expression ")") option("section" "(" Expression ")") option("->" TypeExpr) FnDef = option("inline" | "extern") FnProto Block |
