--- gforth/gray.fs 2007/12/31 18:40:24 1.10 +++ gforth/gray.fs 2012/12/31 15:25:18 1.15 @@ -1,6 +1,6 @@ \ recursive descent parser generator ) -\ Copyright (C) 1995,1996,1997,2000,2003 Free Software Foundation, Inc. +\ Copyright (C) 1995,1996,1997,2000,2003,2007,2008,2012 Free Software Foundation, Inc. \ Copyright 1990, 1991, 1994 Martin Anton Ertl \ This file is part of Gforth. @@ -29,10 +29,6 @@ warnings on \ end of ANS FORTH prolog -warnings @ [IF] -.( Loading Gray ... Copyright 1990-1994 Martin Anton Ertl; NO WARRANTY ) cr -[THEN] - \ misc ) : noop ; @@ -746,9 +742,13 @@ constant nt-syntax-expr : generate-nt \ -- ) \ generates a call to the code for the rule ) \ since the code needs not be generated yet, an indirect call is used ) - exec postpone literal - postpone @ - postpone execute ; + exec dup @ if + @ compile, + else + postpone literal + postpone @ + postpone execute + endif ; : pass2-nt \ -- ) \ apart from the usual duties, this pass2 also has to code-nt )