Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.misc > #392 > unrolled thread
| Started by | Peter Percival <peterxpercival@hotmail.com> |
|---|---|
| First post | 2013-06-26 11:38 +0100 |
| Last post | 2016-01-21 11:52 -0800 |
| Articles | 10 — 7 participants |
Back to article view | Back to comp.lang.basic.misc
How to write an interpreter? Peter Percival <peterxpercival@hotmail.com> - 2013-06-26 11:38 +0100
Re: How to write an interpreter? "Auric__" <not.my.real@email.address> - 2013-06-26 12:39 +0000
Re: How to write an interpreter? Peter Percival <peterxpercival@hotmail.com> - 2013-06-27 12:29 +0100
Re: How to write an interpreter? Mitch Bujard <cli.mb@schoolfonts.com> - 2013-07-16 09:27 +0200
Re: How to write an interpreter? aurelw.wiz@gmail.com - 2013-08-09 03:37 -0700
Re: How to write an interpreter? "Arnaud DELFOSSE" <arnaud.delfosse@NOSPAMwanadoo.fr> - 2014-02-11 12:27 +0100
Re: How to write an interpreter? aurelw.wiz@gmail.com - 2015-12-31 10:37 -0800
Re: How to write an interpreter? aurelw.wiz@gmail.com - 2016-01-15 00:39 -0800
Re: How to write an interpreter? Michael Cole <noone@invalid.com> - 2016-01-16 20:48 +1100
Re: How to write an interpreter? ruben.code@gmail.com - 2016-01-21 11:52 -0800
| From | Peter Percival <peterxpercival@hotmail.com> |
|---|---|
| Date | 2013-06-26 11:38 +0100 |
| Subject | How to write an interpreter? |
| Message-ID | <kqegbo$rig$1@news.albasani.net> |
Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. I have in mind old-style Basic such as is described in Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) Any suggestions of what I might read? -- I think I am an Elephant, Behind another Elephant Behind /another/ Elephant who isn't really there.... A.A. Milne
[toc] | [next] | [standalone]
| From | "Auric__" <not.my.real@email.address> |
|---|---|
| Date | 2013-06-26 12:39 +0000 |
| Message-ID | <XnsA1EB3A7D31052auricauricauricauric@78.46.70.116> |
| In reply to | #392 |
Peter Percival wrote: > Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. > I have in mind old-style Basic such as is described in > > Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) > > Any suggestions of what I might read? Depends. I'd suggest reading through Jack Crenshaw's "Let's Build a Compiler" tutorials: http://compilers.iecc.com/crenshaw/ Part 4 discusses interpreters, but you'll probably want to start from the beginning. It's not BASIC, and doesn't resemble it in any way, but it can be really helpful. -- What a great excuse you use for ducking the question.
[toc] | [prev] | [next] | [standalone]
| From | Peter Percival <peterxpercival@hotmail.com> |
|---|---|
| Date | 2013-06-27 12:29 +0100 |
| Message-ID | <kqh7mm$1v0$2@news.albasani.net> |
| In reply to | #393 |
Auric__ wrote: > Peter Percival wrote: > >> Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. >> I have in mind old-style Basic such as is described in >> >> Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) >> >> Any suggestions of what I might read? > > Depends. I'd suggest reading through Jack Crenshaw's "Let's Build a > Compiler" tutorials: > > http://compilers.iecc.com/crenshaw/ > > Part 4 discusses interpreters, but you'll probably want to start from the > beginning. It's not BASIC, and doesn't resemble it in any way, but it can be > really helpful. Thank you. -- I think I am an Elephant, Behind another Elephant Behind /another/ Elephant who isn't really there.... A.A. Milne
[toc] | [prev] | [next] | [standalone]
| From | Mitch Bujard <cli.mb@schoolfonts.com> |
|---|---|
| Date | 2013-07-16 09:27 +0200 |
| Message-ID | <51e4f5f7$0$2303$426a74cc@news.free.fr> |
| In reply to | #392 |
On 2013-06-26 10:38:48 +0000, Peter Percival said: > Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. > I have in mind old-style Basic such as is described in > > Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) > > Any suggestions of what I might read? Even without a book, what you have in hand maybe enough, if your command of programming is good. If you think about it, an interpreter is not quite different from any other app. The main difference is that the UI is line based. Most of the job of an interpreter is to react to command line and display the result, make sound (if limited to beep) or send the output to a printer. Programs are just a list of command lines, placed into a text file. At the time, most Basic did not even interract with disks. The PRINT command is extremely simple to implement and play with, since its result can be seen on the screen right away. A small detail has changed between early Basic and today, though : at the time, screen was 20 lines of 40 characters or so. Then it doubled to 20 lines of 80 characters. But our current environnement is graphical, and you will have to translate coordinates. Same thing for color instructions. Same things for graphical instructions if any (an't really remember what was around in 67). Output to the printer can be a small challenge as well : line printers of the era where teletypes, meant to show the output on top of the unit, line by line. Today's printers are mostly page oriented. You can still attach line printers to a PC, through a serial card, but it may not be that easy to manage through Windows API. It may require a bit of under the hood programming. Or you can create a small screen app that will show the result of the line printer for interactive, and send to a modern printer when enough lines can grant a page. Starting with a 67 book is an excellent idea, because you start where most interpreters started. You can then follow evolution to more modern versions. Sounds like a very interesting endeavour. Good luck ! Mitch Bujard http://FontMenu.com --- I never think of the future - it comes soon enough. Albert Einstein
[toc] | [prev] | [next] | [standalone]
| From | aurelw.wiz@gmail.com |
|---|---|
| Date | 2013-08-09 03:37 -0700 |
| Message-ID | <438834bc-f381-4fa1-a2ce-f2ddcce9463f@googlegroups.com> |
| In reply to | #392 |
Dana srijeda, 26. lipnja 2013. 12:38:48 UTC+2, korisnik Peter Percival napisao je: > Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. > > I have in mind old-style Basic such as is described in > > > > Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) > > > > Any suggestions of what I might read? > > > > -- > > I think I am an Elephant, > > Behind another Elephant > > Behind /another/ Elephant who isn't really there.... > > A.A. Milne If you really interested how to write a interpreter on simple as possible way look into mine open source project on; http://rubendev.888webhost.com/forum/index.php So just create account on forum and start asking question... Aurel
[toc] | [prev] | [next] | [standalone]
| From | "Arnaud DELFOSSE" <arnaud.delfosse@NOSPAMwanadoo.fr> |
|---|---|
| Date | 2014-02-11 12:27 +0100 |
| Message-ID | <52fa0910$0$2061$426a74cc@news.free.fr> |
| In reply to | #392 |
Hello, If you plan to write it in the C language you can have a look at http://wifichezleschtis.free.fr/bison It is not finished at all. It uses lex and yacc and works on both linux and windows. Best regards, "Peter Percival" <peterxpercival@hotmail.com> a écrit dans le message de news: kqegbo$rig$1@news.albasani.net... > Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. I > have in mind old-style Basic such as is described in > > Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) > > Any suggestions of what I might read? > > -- > I think I am an Elephant, > Behind another Elephant > Behind /another/ Elephant who isn't really there.... > A.A. Milne
[toc] | [prev] | [next] | [standalone]
| From | aurelw.wiz@gmail.com |
|---|---|
| Date | 2015-12-31 10:37 -0800 |
| Message-ID | <a18b6d5a-6016-438d-9522-4ac29cb447a2@googlegroups.com> |
| In reply to | #400 |
Dana utorak, 11. veljače 2014. u 12:27:12 UTC+1, korisnik Arnaud DELFOSSE napisao je: > Hello, > > If you plan to write it in the C language you can have a look at > http://wifichezleschtis.free.fr/bison > It is not finished at all. It uses lex and yacc and works on both linux and > windows. > > Best regards, > > "Peter Percival" <peterxpercival@hotmail.com> a écrit dans le message de > news: kqegbo$rig$1@news.albasani.net... > > Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. I > > have in mind old-style Basic such as is described in > > > > Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) > > > > Any suggestions of what I might read? > > > > -- > > I think I am an Elephant, > > Behind another Elephant > > Behind /another/ Elephant who isn't really there.... > > A.A. Milne hi i dont get it where is download for your basic interpreter written in C ? what is the status... http://basicprograming.free-forum.net/index.php
[toc] | [prev] | [next] | [standalone]
| From | aurelw.wiz@gmail.com |
|---|---|
| Date | 2016-01-15 00:39 -0800 |
| Message-ID | <2da6cd2e-e986-4839-97d8-1a3cc89b1cbc@googlegroups.com> |
| In reply to | #421 |
Dana četvrtak, 31. prosinca 2015. u 19:37:40 UTC+1, korisnik aurel...@gmail.com napisao je: > Dana utorak, 11. veljače 2014. u 12:27:12 UTC+1, korisnik Arnaud DELFOSSE napisao je: > > Hello, > > > > If you plan to write it in the C language you can have a look at > > http://wifichezleschtis.free.fr/bison > > It is not finished at all. It uses lex and yacc and works on both linux and > > windows. > > > > Best regards, > > > > "Peter Percival" <peterxpercival@hotmail.com> a écrit dans le message de > > news: kqegbo$rig$1@news.albasani.net... > > > Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. I > > > have in mind old-style Basic such as is described in > > > > > > Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) > > > > > > Any suggestions of what I might read? > > > > > > -- > > > I think I am an Elephant, > > > Behind another Elephant > > > Behind /another/ Elephant who isn't really there.... > > > A.A. Milne > > hi > i dont get it where is download for your basic interpreter > written in C ? > what is the status... > > http://basicprograming.free-forum.net/index.php anyone?
[toc] | [prev] | [next] | [standalone]
| From | Michael Cole <noone@invalid.com> |
|---|---|
| Date | 2016-01-16 20:48 +1100 |
| Message-ID | <n7d3fq$j9$1@dont-email.me> |
| In reply to | #422 |
aurelw.wiz@gmail.com wrote on 1/15/2016 : > Dana četvrtak, 31. prosinca 2015. u 19:37:40 UTC+1, korisnik > aurel...@gmail.com napisao je: >> Dana utorak, 11. veljače 2014. u 12:27:12 UTC+1, korisnik Arnaud DELFOSSE >> napisao je: >>> Hello, >>> >>> If you plan to write it in the C language you can have a look at >>> http://wifichezleschtis.free.fr/bison >>> It is not finished at all. It uses lex and yacc and works on both linux and >>> windows. >>> >>> Best regards, >>> >>> "Peter Percival" <peterxpercival@hotmail.com> a écrit dans le message de >>> news: kqegbo$rig$1@news.albasani.net... >>>> Excuse me ladies and gentlemen, I'd like to write a Basic interpreter. I >>>> have in mind old-style Basic such as is described in >>>> >>>> Basic programming, Kemeny & Kurtz, Wiley, 1967 (!) >>>> >>>> Any suggestions of what I might read? >>>> >>>> -- >>>> I think I am an Elephant, >>>> Behind another Elephant >>>> Behind /another/ Elephant who isn't really there.... >>>> A.A. Milne >> >> hi >> i dont get it where is download for your basic interpreter >> written in C ? >> what is the status... >> >> http://basicprograming.free-forum.net/index.php > > anyone? You were replying to a two year old message, in a newsgroup that is not well used. -- Michael Cole
[toc] | [prev] | [next] | [standalone]
| From | ruben.code@gmail.com |
|---|---|
| Date | 2016-01-21 11:52 -0800 |
| Message-ID | <7b4105e3-de67-4b1e-8914-1153a1a72078@googlegroups.com> |
| In reply to | #423 |
if is well used why you reply... and what a heck is with all this members,,,dead? :)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.basic.misc
csiph-web