Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #41585 > unrolled thread
| Started by | Greg <borota@gmail.com> |
|---|---|
| First post | 2015-08-27 20:01 -0700 |
| Last post | 2015-08-28 15:12 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.forth
Hooking into the interpreter Greg <borota@gmail.com> - 2015-08-27 20:01 -0700
Re: Hooking into the interpreter "HAA" <someone@microsoft.com> - 2015-08-28 22:48 +1000
Re: Hooking into the interpreter Bernd Paysan <bernd.paysan@gmx.de> - 2015-08-28 15:12 +0200
| From | Greg <borota@gmail.com> |
|---|---|
| Date | 2015-08-27 20:01 -0700 |
| Subject | Hooking into the interpreter |
| Message-ID | <07fcf699-d03f-4103-86a8-3e9369a10731@googlegroups.com> |
I want to tweak the interpreter to do some custom parsing when words of a certain shape are not found in the dictionary. I saw being mentioned that various Forths have various mechanisms for that. I would like to know how the following let's one hook into the interpreter: 1) SwiftForth 2) iForth 3) VFX Forth 4) CiForth 5) GForth - I know it has recognizers, which I am trying to figure at the moment.
[toc] | [next] | [standalone]
| From | "HAA" <someone@microsoft.com> |
|---|---|
| Date | 2015-08-28 22:48 +1000 |
| Message-ID | <mrpl91$4le$1@speranza.aioe.org> |
| In reply to | #41585 |
Greg wrote: > I want to tweak the interpreter to do some custom parsing when words of a > certain shape are not found in the dictionary. I saw being mentioned that > various Forths have various mechanisms for that. > > I would like to know how the following let's one hook into the interpreter: > 1) SwiftForth > 2) iForth > 3) VFX Forth > 4) CiForth > 5) GForth - I know it has recognizers, which I am trying to figure at the > moment. SwiftForth and VFX come with floating-point in source form. You could take a look how they patch it into the interpreter.
[toc] | [prev] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2015-08-28 15:12 +0200 |
| Message-ID | <mrpmle$em8$1@dont-email.me> |
| In reply to | #41585 |
Greg wrote: > I want to tweak the interpreter to do some custom parsing when words of a > certain shape are not found in the dictionary. I saw being mentioned that > various Forths have various mechanisms for that. > > I would like to know how the following let's one hook into the > interpreter: 1) SwiftForth > 2) iForth > 3) VFX Forth > 4) CiForth > 5) GForth - I know it has recognizers, which I am trying to figure at the > moment. I've recently posted a port of Gforth's recognizers to VFX here, which a) shows how to plug into the VFX interpreter and b) shows how to extend it the same way as Gforth's recognizers. Only the recent snapshots of Gforth have recognizers. -- Bernd Paysan "If you want it done right, you have to do it yourself" net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ* http://bernd-paysan.de/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.forth
csiph-web