[gforth] / gforth / gray.fs  

gforth: gforth/gray.fs

Diff for /gforth/gray.fs between version 1.9 and 1.13

version 1.9, Mon Aug 25 14:17:45 2003 UTC version 1.13, Tue Jul 15 16:11:49 2008 UTC
Line 1 
Line 1 
 \ recursive descent parser generator )  \ recursive descent parser generator )
   
 \ Copyright (C) 1995,1996,1997,2000,2003 Free Software Foundation, Inc.  \ Copyright (C) 1995,1996,1997,2000,2003,2007,2008 Free Software Foundation, Inc.
 \ Copyright 1990, 1991, 1994 Martin Anton Ertl  \ Copyright 1990, 1991, 1994 Martin Anton Ertl
   
 \     This program is free software; you can redistribute it and/or modify  \ This file is part of Gforth.
 \     it under the terms of the GNU General Public License as published by  
 \     the Free Software Foundation; either version 2 of the License, or  \ Gforth is free software; you can redistribute it and/or
 \     (at your option) any later version.  \ modify it under the terms of the GNU General Public License
   \ as published by the Free Software Foundation, either version 3
   \ of the License, or (at your option) any later version.
   
 \     This program is distributed in the hope that it will be useful,  \     This program is distributed in the hope that it will be useful,
 \     but WITHOUT ANY WARRANTY; without even the implied warranty of  \     but WITHOUT ANY WARRANTY; without even the implied warranty of
Line 14 
Line 16 
 \     GNU General Public License for more details.  \     GNU General Public License for more details.
   
 \     You should have received a copy of the GNU General Public License  \     You should have received a copy of the GNU General Public License
 \     along with this program; if not, write to the Free Software  \ along with this program. If not, see http://www.gnu.org/licenses/.
 \     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.  
   
 \ ANS FORTH prolog  \ ANS FORTH prologue
   
 : defined? ( "word" -- flag )  bl word find nip ;  : defined? ( "word" -- flag )  bl word find nip ;
 defined? WARNINGS 0=  defined? WARNINGS 0=
Line 745 
Line 746 
 : generate-nt \ -- )  : generate-nt \ -- )
 \ generates a call to the code for the rule )  \ generates a call to the code for the rule )
 \ since the code needs not be generated yet, an indirect call is used )  \ since the code needs not be generated yet, an indirect call is used )
  exec postpone literal   exec dup @ if
     @ compile,
    else
     postpone literal
  postpone @   postpone @
  postpone execute ;    postpone execute
    endif ;
   
 : pass2-nt \ -- )  : pass2-nt \ -- )
 \ apart from the usual duties, this pass2 also has to code-nt )  \ apart from the usual duties, this pass2 also has to code-nt )


Generate output suitable for use with a patch program
Legend:
Removed from v.1.9  
changed lines
  Added in v.1.13

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help