Parsing text files with standard words
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 68 articles for 0.069 sec
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Gerry
Date: Sep 15, 2008 05:23

...co.uk> writes Re: Parsing text files with standard words [..] 2. define ... be included in the first file. [..] I've seen discussions on ... fundamental problem is that all words, such as INCLUDED, that change ... overcoming this. So whenever a file is INCLUDED the application loses ...-made solutions for this? | execute-parsing ... addr u xt ... unknown execute-...
Show full article (1.78Kb)
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Gerry
Date: Sep 15, 2008 05:26

...ge...@jackson9000.fsnet.co.uk> wrote: FILE-SOURCE ( fileid -- ) is like INCLUDE-FILE but does not invoke the Forth text interpreter i...file position existing at the time FILE-SOURCE is called. CLOSE-SOURCE (...simple example of usage showing how standard words such as REFILL and SOURCE... fileid) begin refill while 0 parse type cr repeat ( fileid) close...
Show full article (1.80Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: The Beez'
Date: Sep 15, 2008 04:44

...ge...@jackson9000.fsnet.co.uk> wrote: FILE-SOURCE ( fileid -- ) is like INCLUDE-FILE but does not invoke the Forth text interpreter i... position existing at the time FILE-SOURCE is called. CLOSE-SOURCE ... example of usage showing how standard words such as REFILL and ... fileid) begin refill while 0 parse type cr repeat ( fileid) close ...
Show full article (1.58Kb)
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Anton Ertl
Date: Sep 20, 2008 07:11

...caller of EXECUTE-PARSING-FILE loses control until the word executed (xyz-helper...your example) has completed, whereupon the file is closed. So the caller cannot...with doing that processing in the word that you execute through EXECUTE-...would therefore behave much like INCLUDE-FILE. Are there any conceptual problems .../forth/faq/toc.html New standard: http://www.forth200x.org/forth200x....
Show full article (3.59Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: David N. Williams
Date: Sep 19, 2008 04:21

... I would prefer to do it via a FILE- SOURCE proposal with EXECUTE-PARSING-FILE as a fall-back. Good! As a...file input stream with a file text input buffer and parse area and a file input stream stack. So, there are words like: LFSOURCE LFPARSE-AREA@ LFPARSE-AREA! ...The user explicity opens and closes the file input stream, and any of the usual parsing words, such ...
Show full article (0.85Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Josh Grams
Date: Sep 18, 2008 17:56

..., but that's no big deal. ... FILE-SOURCE and CLOSE-SOURCE can't be ... thing, which is rather different. :) : execute-parsing-file ( fileid xt -- ) r swap file>input execute input ; Without knowing how ... of nesting are used in the word which is processing the input, there'... is required by the ANS Forth standard. I haven't really used exceptions, ...
Show full article (2.08Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Gerry
Date: Sep 18, 2008 13:47

...>>>design where an application opens a file source and then returns to whatever ...caller of EXECUTE-PARSING-FILE loses control until the word executed (xyz-helper in your example) has completed, whereupon the file is closed. So the caller cannot...caller delegates the processing of the file to xyz-helper via execute-parsing.... This is not so with FILE-SOURCE. So it's not the...
Show full article (1.34Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Gerry
Date: Sep 18, 2008 13:36

...entrant even if you were using FILE-SOURCE/CLOSE-SOURCE? Not necessarily, ...( fileid xt -- ) r swap file>input execute input ; : read-loop...: included ( fileid -- ) ['] read-loop execute-parsing-file ; Without knowing how many levels...of nesting are used in the word which is processing the input,... required by the ANS Forth standard. But you are right, such ...
Show full article (4.03Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: coos
Date: Sep 18, 2008 13:11

...design where an application opens a file source and then returns to whatever..., which would then call EXECUTE-PARSING-FILE. Well yes, but the ... of EXECUTE-PARSING-FILE loses control until the word executed (xyz-...your example) has completed, whereupon the file is closed. So the caller ... delegates the processing of the file to xyz-helper via execute-parsing-file. So it's not ...
Show full article (0.97Kb) · Show article thread
Re: Parsing text files with standard words     

Group: comp.lang.forth · Group Profile · Search for Parsing text files with standard words in comp.lang.forth
Author: Gerry
Date: Sep 18, 2008 12:55

...caller of EXECUTE-PARSING-FILE loses control until the word executed (xyz-helper.... After all, part of maintaining standards is removal of things that have...would therefore behave much like INCLUDE-FILE. Are there any conceptual problems ... falls back to the enclosing text interpreter without either CLOSE-SOURCE ...I never considered copying the whole file, yes that works. [...] As this ...
Show full article (5.99Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · next