URL
https://opencores.org/ocsvn/sc2v/sc2v/trunk
[/] [sc2v/] [trunk/] [src/] [sc2v_step3.y] - Diff between revs 4 and 12
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 12 |
Line 54... |
Line 54... |
|
|
%token WORD
|
%token WORD
|
%token OPENPAR CLOSEPAR
|
%token OPENPAR CLOSEPAR
|
%token MODULE
|
%token MODULE
|
|
|
%%
|
%% commands:
|
|
/* empty */
|
commands: /* empty */
|
|commands command;
|
| commands command
|
|
;
|
|
|
|
|
|
command:
|
command:
|
module
|
module
|
|
|
|
|
closepar
|
closepar
|
|
|
|
|
concat
|
concat
|
|
|
|
|
openpar
|
openpar;
|
;
|
|
|
|
module:
|
module:
|
MODULE
|
MODULE
|
{
|
{
|
module_found = 1;
|
module_found = 1;
|
opened_pars++;
|
opened_pars++;
|
printf("%s",(char *)$1);
|
printf("%s",(char *)$1);
|
};
|
};
|
|
|
openpar:
|
openpar:
|
OPENPAR
|
OPENPAR
|
{
|
{
|
printf("(");
|
printf("(");
|
opened_pars++;
|
opened_pars++;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.