home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / source / braces.seq < prev    next >
Text File  |  1989-09-21  |  2KB  |  54 lines

  1. \ BRACE.SEQ     Braces used to enclose source code        by Glen B. Haydon
  2.  
  3. : }     ( --- )         \ Skip all text between } and { .
  4.         ?loading
  5.         " {" ">$ comment$ !
  6.         @> run !> crunsave
  7.         ['] <comment:> is run <comment:> ; immediate
  8.  
  9. ' }    alias \\         \ new char to start F-PC source files with by T.J.Z
  10. ' noop alias {          \ make this a dummy word that does nothing
  11.  
  12. }            NEW STYLE SOURCE CODE FOLLOWS
  13.                   by Glen B. Haydon
  14.  
  15.   The code at the top allows the use of this style for the rest
  16. of my source. You will note that I am starting the title on line 11
  17. with the close brace. Thence through the source the implementation
  18. will be put in braces and the rest of the source is narative such
  19. as this.
  20.  
  21.              Additional comments by Tom Zimmer
  22.  
  23.   Files that contain source code, and normal forth type imbeded comments
  24. will work as before. You can use "\" or "comment:" and "comment;" to create
  25. comments as if nothing has changed.
  26.  
  27.   Files that start out with "\\", rather than the normal "\" in the first
  28. line, specify files that are going to contain comments except for those
  29. lines contained in "{" and "}" which will be treated as Forth source.
  30.  
  31. Examples:
  32. \ ***************************************************************************
  33.  
  34. \ NORMAL.SEQ       This file starts out as a normal Forth source file.
  35.  
  36. \ Normal Forth source code follows
  37.  
  38.  
  39. \ ***************************************************************************
  40.  
  41. \\ TEXTFILE.SEQ    This file contains comments except for { } notation.
  42.  
  43. This is a file containing comments and documentation except as folows
  44.  
  45. {
  46.  
  47. \ Normal Forth source code is placed here
  48.  
  49. }
  50.  
  51.   More comments to end of file, automatically drops out of comment mode
  52. at the end of the file.
  53.  
  54.