OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [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++;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.