diff options
author | Benedikt Spranger <b.spranger@pengutronix.de> | 2004-10-04 17:10:58 +0000 |
---|---|---|
committer | Benedikt Spranger <b.spranger@pengutronix.de> | 2004-10-04 17:10:58 +0000 |
commit | 535e73a6cab751c9d9592166b70b2c107beefcb5 (patch) | |
tree | a8e511790dc827436016760b6ec994c43045798e | |
parent | 6eedd3d142bade629d1725969bb1141c7c0b9a11 (diff) | |
download | memedit-535e73a6cab751c9d9592166b70b2c107beefcb5.tar.gz memedit-535e73a6cab751c9d9592166b70b2c107beefcb5.tar.xz |
BSP: prompt added.
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | fpgaedit.l | 1 | ||||
-rw-r--r-- | fpgaedit.y | 11 |
3 files changed, 10 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 67fbe4a..64acbd0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ bin_PROGRAMS = fpgaedit fpgaedit_SOURCES = fpgaedit_parser.c fpgaedit_parser.h \ - y.tab.c y.tab.h lex.yy.c fpgaedit.c + y.tab.c y.tab.h lex.zz.c fpgaedit.c fpgaedit_CFLAGS = -W -Wall @@ -8,6 +8,7 @@ %option pointer %option nodefault %option case-insensitive +%option prefix="zz" %{ /* need this for the call to atol() below */ @@ -26,7 +26,8 @@ void hex_output (int offset, int len, int count); void print_help (void); extern void yyerror (const char *s); -extern int yylex (void); +extern int zzlex (void); +int yylex (void); %} %union { @@ -53,8 +54,7 @@ char *tptr; %left <val> EQ %token <val> EXIT %token <val> HELP -%token <val> CR - +%right <val> CR %type <val> num @@ -255,4 +255,9 @@ void hex_output (int offset, int len, int count) { else printf ("please open file\n"); return; +} + +int yylex (void) { + printf ("\nPROMPT>"); + zzlex (); }
\ No newline at end of file |