First test added

This commit is contained in:
Jordi Baylina
2018-09-05 03:48:58 +02:00
parent 25ec92ca5f
commit ff2ecd310e
40 changed files with 4689 additions and 479 deletions

View File

@@ -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};