diff --git a/GRAMMAR b/GRAMMAR index eec3387edb1c5c68754f4409e3b892a95faad4b6..e52fb9d22ad7ed0cf666ad3c3bfbe4a1c3751c5b 100644 --- a/GRAMMAR +++ b/GRAMMAR @@ -13,7 +13,7 @@ command: simple_command | shell_command (redirection)* | funcdec -simple_command: (cmp_prefix)* (element)+ +simple_command: (prefix)* (element)+ shell_command: '{' compound_list '}' | '(' compound_list ')' @@ -35,7 +35,7 @@ redirection: [NUMBER] '>' WORD | [NUMBER] '>|' WORD | [NUMBER] '<>' WORD -cmd_prefix: ASSIGMENT_WORD +prefix: ASSIGMENT_WORD | redirection element: WORD diff --git a/TODO b/TODO index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e8d5c67c61186b417e4bb344709a12a9b1e53b99 100644 --- a/TODO +++ b/TODO @@ -0,0 +1 @@ +lexer: verifier si un EOF apparait si le dernier token est bien pris en compte \ No newline at end of file diff --git a/configure.ac b/configure.ac index 557712ce08ac28530d9a3b449e78c60ba5aae555..b1b8285c2d284b0d48b7f1f8a121b72b46812127 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,7 @@ case $host_os in ;; *linux*) AC_SUBST([CFLAGS], ['-Wall -Werror -W -std=c99 -pedantic -D_XOPEN_SOURCE=600']) + AC_SUBST([LDFLAGS], ['-static']) ;; *) pl="`uname -s`" @@ -89,7 +90,7 @@ AC_ARG_WITH([debug], [AS_HELP_STRING([--with-debug], [use -g and don't use -DNDEBUG -O3])], [dnl action-if-given: --with-debug => -g || --without-debug => -DNDEBUG if test x$withval = xyes; then - CFLAGS="$CFLAGS -g -DDEBUG42" + CFLAGS="$CFLAGS -g" else CFLAGS="$CFLAGS -DNDEBUG -O3" fi