Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: Boring for most of you, but I'm having fun ... :) Date: Fri, 01 Jan 2016 21:43:05 -0800 Organization: A noiseless patient Spider Lines: 12 Message-ID: <87bn94edue.fsf@jester.gateway.pace.com> References: <5387d185-d7d1-47f1-ac16-824ec3f8896d@googlegroups.com> <87wprye23s.fsf@nightsong.com> <674240d6-b4c9-44de-80a3-908757ccbae0@googlegroups.com> <1sw352f61p5dj$.vugw736emrk5$.dlg@40tude.net> <3b4c49e5-6ccb-4b38-b22b-8da2cc547ce5@googlegroups.com> <7OidnUoCmopdfhzLnZ2dnUU7-QUAAAAA@supernews.com> <56c7a56e-aa99-4ac1-bf6a-245b65e36411@googlegroups.com> <87y4cdojee.fsf@jester.gateway.pace.com> <22d7fab0-ef77-45d2-9f19-ef5a9f3d109e@googlegroups.com> <5683caf3$0$23766$e4fe514c@news.xs4all.nl> <621454e6-3eb8-4fe2-aaf9-d5330bdc4144@googlegroups.com> <87poxny9g3.fsf@jester.gateway.pace.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="7fb8b9b5119ed656382b2cea88166c4f"; logging-data="12119"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//JOzvcD6HpNA4T8/Kmaxc" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:hbuwqzDnVV8SmLGOzx6lA5elLF4= sha1:OHMlP35o5feCe4xZdKr+240gfPE= Xref: csiph.com comp.lang.forth:44519 Bernd Paysan writes: > EXECUTE-PARSING ( i*x addr u xt -- j*x ) > is a more generic solution to that problem. There's a standard > implementation of it in compat/ in Gforth's sources. I see, it works by copying the string to a temp buffer and using EVALUATE. So I guess CORE has enough machinery to do this using a few variables and a scratch array, though it seems somewhat roundabout. compat/execute-parsing.fs actually uses ALLOCATE and an extra word list, which avoids leaving junk around, but needs more optional words. Thanks!