Commit fe85a630 authored by Jaime Arias's avatar Jaime Arias
Browse files

Fix spaces

parent 2050cdb8
...@@ -29,6 +29,6 @@ cp/[ ]*"(" { return(CP);} ...@@ -29,6 +29,6 @@ cp/[ ]*"(" { return(CP);}
^in { return(IN);} ^in { return(IN);}
^out { return(OUT);} ^out { return(OUT);}
[0-9]+ { sscanf(yytext,"%d",&yylval.i); return(ENTIER);} [0-9]+ { sscanf(yytext,"%d",&yylval.i); return(ENTIER);}
[a-zA-Z_][a-zA-Z0-9_]* { yylval.s=strdup(yytext); return(VARIABLE);} [a-zA-Z_][a-zA-Z0-9_]* { yylval.s = strdup(yytext); return(VARIABLE);}
[ \t\n] {} [ \t\n] {}
%% %%
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
/* .......... Declarations C ........*/ /* .......... Declarations C ........*/
//#include <stdio.h>
#include <string> #include <string>
//#include <iostream>
#include <stdio.h> #include <stdio.h>
#include "RdPMonteur.h" #include "RdPMonteur.h"
...@@ -17,6 +15,7 @@ extern char yytext[]; ...@@ -17,6 +15,7 @@ extern char yytext[];
/*........... Code C additionnel ....*/ /*........... Code C additionnel ....*/
extern "C" { extern "C" {
int yylex(); int yylex();
int yyerror(const char* s){ int yyerror(const char* s){
printf("parsing error\n"); printf("parsing error\n");
return (1); return (1);
...@@ -249,5 +248,3 @@ bool RdPMonteur::create(const char *f){ ...@@ -249,5 +248,3 @@ bool RdPMonteur::create(const char *f){
fclose(yyin); fclose(yyin);
return (i==0); return (i==0);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment