Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-13 Thread waldo kitty
On 9/12/2011 20:30, Skybuck Flying wrote: Well I hope the pascal language is updated so semicolons become required for end's. semicolons terminate statements... end does not... Take a long hard look at the P4 or P5 code and you will find a lot of if then else statements with *wrong identatio

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-13 Thread Felipe Monteiro de Carvalho
On Tue, Sep 13, 2011 at 2:30 AM, Skybuck Flying wrote: > Well I hope the pascal language is updated so semicolons become required for > end's. lol! > Take a long hard look at the P4 or P5 code and you will find a lot of if > then else statements with wrong identation as well, this makes it somew

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-13 Thread Skybuck Flying
Well I hope the pascal language is updated so semicolons become required for end's. Take a long hard look at the P4 or P5 code and you will find a lot of if then else statements with wrong identation as well, this makes it somewhat hard to understand which else belongs to which if, it also mak

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-12 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: end until a < b; ^ This code should produce an error becomes end is not ended with a semicolon –> ; Please understand Pascal first, before you try to modify it. DoDi ___ fpc-devel maillist - fpc-devel@lists.freepascal

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-12 Thread Felipe Monteiro de Carvalho
On Sun, Sep 11, 2011 at 1:51 PM, Skybuck Flying wrote: > ^ This code should produce an error becomes end is not ended with a > semicolon –> ; Looks like you are not aware that Pascal uses semicolon as separators, not statement enders. AFAIK the code you posted is valid, and so it is to write for

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-12 Thread Graeme Geldenhuys
On 11/09/2011 13:51, Skybuck Flying wrote: > > The P5 code is not properly indented. Now you are on the border line of ridiculous! Simply run the code through JCF (Jedi Code Formatter), and the code will look exactly as you specified in all of 2 seconds! Regards, - Graeme - -- fpGUI Toolki

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-12 Thread Skybuck Flying
P5 is also in an unusuable state. It should not be allowed to write code as follows: repeat if a < b then begin end until a < b; ^ This code should produce an error becomes end is not ended with a semicolon –> ; This confuses Delphi’s source beautifier, which could be seen as a short comin

RE : RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-11 Thread Ludo Brands
> 1. Very old. 1976 > 2. Written by a C programmer or so or a really old pascal > programmer. By Wirth and colleagues, the inventor/developer of pascal. > 4. It has a huge ammount of q's, p's, kl's and > lpt's as variable names 1976: 4k memory board 100$, 140M hard disk cabinet 8$

Re: RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-11 Thread John Clymer
Flying To: FPC developers' list Sent: Sun, September 11, 2011 12:01:50 AM Subject: Re: RE : [fpc-devel] Project Idea: Mini-FPC " Have a look at the P4 pascal compiler " Ok, I had a look at it. " http://homepages.cwi.nl/~steven/pascal/ . " Nice site. " The whole c

Re: RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-11 Thread Skybuck Flying
" Have a look at the P4 pascal compiler " Ok, I had a look at it. " http://homepages.cwi.nl/~steven/pascal/ . " Nice site. " The whole compiler is written in pascal and is only 4000 lines in 1 file. " Line-wise not to bad, the code itself also looks not to bad, but it does look: 1. Very o

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-11 Thread Skybuck Flying
-Original Message- From: Hans-Peter Diettrich Sent: Saturday, September 10, 2011 2:12 PM To: FPC developers' list Subject: Re: [fpc-devel] Project Idea: Mini-FPC Skybuck Flying schrieb: Nano would be: One integer type, one string type, branch support, loop support, basic su

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Felipe Monteiro de Carvalho
On Sat, Sep 10, 2011 at 11:34 PM, Jeff Duntemann wrote: > Three years ago I started rewriting my BP7 Pascal book for FPC, but the > issue of which IDE would be better for beginners drove me nuts. I looked > around for something simple and reliable and eventually set the project > aside. Lazarus is

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Jeff Duntemann
That just may do the job. Three years ago I started rewriting my BP7 Pascal book for FPC, but the issue of which IDE would be better for beginners drove me nuts. I looked around for something simple and reliable and eventually set the project aside. Lazarus is really the way to go for an IDE,

Re: RE : RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread John Lee
> > > Maybe we could/should put a fpc compilable version of > > this into the > > > > fpc > > > docs, and into the fpc distribution? Can't imagine that one > > could do > > > anything smaller or more portable? > > > > P4 is not FPC compilable. It uses ISO style filehandling > > iirc. > > Correct. >

RE : RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Ludo Brands
> > > Maybe we could/should put a fpc compilable version of > this into the > > > fpc > > docs, and into the fpc distribution? Can't imagine that one > could do > > anything smaller or more portable? > > P4 is not FPC compilable. It uses ISO style filehandling > iirc. Correct. And it uses al

Re: RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Marco van de Voort
In our previous episode, John Lee said: > > > > Maybe we could/should put a fpc compilable version of this into the fpc > docs, and into the fpc distribution? Can't imagine that one could do > anything smaller or more portable? P4 is not FPC compilable. It uses ISO style filehandling iirc. ___

Re: RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread John Lee
> > > Have a look at the P4 pascal compiler > http://homepages.cwi.nl/~steven/pascal/ . The whole compiler is written in > pascal and is only 4000 lines in 1 file. It generates a high level pcode > and > comes with a pcode interpreter (1000 lines of pascal in a second file). > Simpler you can't get

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sat, 10 Sep 2011, Jeff Duntemann wrote: If a "mini-FPC" were to be created to help popularize the Pascal language and get beginners interested and up to speed, it would be more useful to provide a simple IDE than a stripped-down compiler. The console FP IDE has n

RE : [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Ludo Brands
> None, redcode, cuda. > > Mini-fpc could be reduced to show proportions that it becomes > virtual, an > exercise at seperating the processing of the pascal language > and giving > meaning/sense to the tokens so it becomes ready for > assembling. It could be > reduced to such a level that it

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Mattias Gaertner
On Sat, 10 Sep 2011 16:51:36 +0200 (CEST) Michael Van Canneyt wrote: > > > On Sat, 10 Sep 2011, Jeff Duntemann wrote: > > > If a "mini-FPC" were to be created to help popularize the Pascal language > > and > > get beginners interested and up to speed, it would be more useful to > > provide

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Martin Schreiber
Am 10.09.2011 15:42, schrieb Jeff Duntemann: If a "mini-FPC" were to be created to help popularize the Pascal language and get beginners interested and up to speed, it would be more useful to provide a simple IDE than a stripped-down compiler. The console FP IDE has never worked well for me (cras

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Michael Van Canneyt
On Sat, 10 Sep 2011, Jeff Duntemann wrote: If a "mini-FPC" were to be created to help popularize the Pascal language and get beginners interested and up to speed, it would be more useful to provide a simple IDE than a stripped-down compiler. The console FP IDE has never worked well for me (c

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Jeff Duntemann
If a "mini-FPC" were to be created to help popularize the Pascal language and get beginners interested and up to speed, it would be more useful to provide a simple IDE than a stripped-down compiler. The console FP IDE has never worked well for me (crashes a lot) and Lazarus is very large and in

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: Nano would be: One integer type, one string type, branch support, loop support, basic support, object orientation support, property support, array support, virtual methods support. You'll have much trouble in *removing* existing features from FPC, affecting parser,

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Tomas Hajny
On 9 Sep 11, at 14:15, Skybuck Flying wrote: > " > 1) Floating point support is necessary for the compiler to compile/build > itself, because floating point number support needs to be available in the > compiler itself (otherwise source files containing floating point numbers > cannot be processed

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Skybuck Flying
3 comments: " 1) Floating point support is necessary for the compiler to compile/build itself, because floating point number support needs to be available in the compiler itself (otherwise source files containing floating point numbers cannot be processed by the compiler). " Why would a basic/co

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-10 Thread Skybuck Flying
" Have you looked at target "embedded" ? " Just took a look at it it's still quite big/huge and uses arm ? " For what specific platform are you contemplating this for ? " None, redcode, cuda. Mini-fpc could be reduced to show proportions that it becomes virtual, an exercise at seperating the

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-09 Thread John Clymer
cessary to support a given processor and it's "system" unit. John From: Tomas Hajny To: FPC developers' list Sent: Fri, September 9, 2011 3:45:54 PM Subject: Re: [fpc-devel] Project Idea: Mini-FPC On Fri, September 9, 2011 03:48, Skybuck Fly

Re: [fpc-devel] Project Idea: Mini-FPC

2011-09-09 Thread Tomas Hajny
On Fri, September 9, 2011 03:48, Skybuck Flying wrote: Hello, > Here is an idea to help new-comers to FPC understand how it works: > > A new project could be created which would be called: "Mini-FPC". > > The purpose of the project is to demonstrate how FPC compiles/builds > itself > and how it

[fpc-devel] Project Idea: Mini-FPC

2011-09-09 Thread Skybuck Flying
Hello, Here is an idea to help new-comers to FPC understand how it works: A new project could be created which would be called: "Mini-FPC". The purpose of the project is to demonstrate how FPC compiles/builds itself and how it implements basic platform/cpu support. So the very minimum goal o