mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-06 18:56:40 +01:00
First test added
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
\/\/.* { /* console.log("SINGLE LINE COMMENT: "+yytext); */ }
|
||||
var { return 'var'; }
|
||||
signal { return 'signal'; }
|
||||
private { return 'private'; }
|
||||
input { return 'input'; }
|
||||
output { return 'output'; }
|
||||
linearCombination { return 'linearCombination'; }
|
||||
@@ -822,6 +823,11 @@ declaration
|
||||
$$ = {type: "DECLARE", declareType: "SIGNALIN", name: $3};
|
||||
setLines($$, @1, @3);
|
||||
}
|
||||
| 'signal' 'private' 'input' simpleLeftHandExpression %prec DECL
|
||||
{
|
||||
$$ = {type: "DECLARE", declareType: "SIGNALIN", private: true, name: $4};
|
||||
setLines($$, @1, @4);
|
||||
}
|
||||
| 'signal' 'output' simpleLeftHandExpression %prec DECL
|
||||
{
|
||||
$$ = {type: "DECLARE", declareType: "SIGNALOUT", name: $3};
|
||||
|
||||
Reference in New Issue
Block a user