mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-04 06:16:00 +03:00
Ignore some doc comments
This commit is contained in:
parent
47b3d59831
commit
81b29cb33c
@ -221,20 +221,28 @@ vtop_decls :: { [TopDecl] }
|
|||||||
| vtop_decls ';' vtop_decl { $3 ++ $1 }
|
| vtop_decls ';' vtop_decl { $3 ++ $1 }
|
||||||
|
|
||||||
vtop_decl :: { [TopDecl] }
|
vtop_decl :: { [TopDecl] }
|
||||||
: decl { [exportDecl Nothing Public $1] }
|
: decl { [exportDecl Nothing Public $1] }
|
||||||
| doc decl { [exportDecl (Just $1) Public $2] }
|
| doc decl { [exportDecl (Just $1) Public $2] }
|
||||||
| 'private' 'v{' vtop_decls 'v}' { changeExport Private (reverse $3) }
|
| mbDoc 'include' STRLIT {% (return . Include) `fmap` fromStrLit $3 }
|
||||||
| 'include' STRLIT {% (return . Include) `fmap` fromStrLit $2 }
|
| mbDoc 'property' name apats '=' expr
|
||||||
| mbDoc 'property' name apats '=' expr { [exportDecl $1 Public (mkProperty $3 $4 $6)]}
|
{ [exportDecl $1 Public (mkProperty $3 $4 $6)] }
|
||||||
| mbDoc 'property' name '=' expr { [exportDecl $1 Public (mkProperty $3 [] $5)]}
|
| mbDoc 'property' name '=' expr
|
||||||
| newtype { [exportNewtype Public $1] }
|
{ [exportDecl $1 Public (mkProperty $3 [] $5)] }
|
||||||
| prim_bind { $1 }
|
| mbDoc newtype { [exportNewtype Public $2] }
|
||||||
|
| prim_bind { $1 }
|
||||||
|
| private_decls { $1 }
|
||||||
|
|
||||||
top_decl :: { [TopDecl] }
|
top_decl :: { [TopDecl] }
|
||||||
: decl { [Decl (TopLevel {tlExport = Public, tlValue = $1 })] }
|
: decl { [Decl (TopLevel {tlExport = Public, tlValue = $1 })] }
|
||||||
| 'include' STRLIT {% (return . Include) `fmap` fromStrLit $2 }
|
| 'include' STRLIT {% (return . Include) `fmap` fromStrLit $2 }
|
||||||
| prim_bind { $1 }
|
| prim_bind { $1 }
|
||||||
|
|
||||||
|
private_decls :: { [TopDecl] }
|
||||||
|
: 'private' 'v{' vtop_decls 'v}'
|
||||||
|
{ changeExport Private (reverse $3) }
|
||||||
|
| doc 'private' 'v{' vtop_decls 'v}'
|
||||||
|
{ changeExport Private (reverse $4) }
|
||||||
|
|
||||||
prim_bind :: { [TopDecl] }
|
prim_bind :: { [TopDecl] }
|
||||||
: mbDoc 'primitive' name ':' schema { mkPrimDecl $1 False $3 $5 }
|
: mbDoc 'primitive' name ':' schema { mkPrimDecl $1 False $3 $5 }
|
||||||
| mbDoc 'primitive' '(' op ')' ':' schema { mkPrimDecl $1 True $4 $7 }
|
| mbDoc 'primitive' '(' op ')' ':' schema { mkPrimDecl $1 True $4 $7 }
|
||||||
|
Loading…
Reference in New Issue
Block a user