Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
Sven Barth wrote: On 29.12.2013 18:20, Martin Frb wrote: On 29/12/2013 17:08, Martin Frb wrote: On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet Now 1.3 does Great! :) Ruefully agrees :-)

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Sven Barth
On 29.12.2013 18:20, Martin Frb wrote: On 29/12/2013 17:08, Martin Frb wrote: On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet Now 1.3 does Great! :) Regards, Sven _

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Martin Frb
On 29/12/2013 17:08, Martin Frb wrote: On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet Now 1.3 does ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Martin Frb
On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinf

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Sven Barth
On 29.12.2013 15:06, Martin Frb wrote: On 29/12/2013 07:33, Mark Morgan Lloyd wrote: Saunders, Rich wrote: On 2013-12-28 15:47, Mark Morgan Lloyd wrote: quit_: if High(lexemeListArray) = 1 then begin end; nop: begin end else Drat- a dang

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
Martin Frb wrote: Drat- a dangling else in a case! I should have spotted that, but instead spent an hour or so picking at it. 1) If you use Lazarus then you can have case-labels highlighted (e.g add underline/border, blend foreground by mixing in another color, bold, ...) It is in the color

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Martin Frb
On 29/12/2013 07:33, Mark Morgan Lloyd wrote: Saunders, Rich wrote: On 2013-12-28 15:47, Mark Morgan Lloyd wrote: quit_: if High(lexemeListArray) = 1 then begin end; nop: begin end else Drat- a dangling else in a case! I should have spotte

Re: [fpc-pascal] Android cross-compiler: arm-linux-androideabi- binutilsprefix

2013-12-29 Thread Reinier Olislagers
On 29/12/2013 14:22, Florian Klämpfl wrote: > Am 29.12.2013 14:12, schrieb Reinier Olislagers: >> Does fpc (trunk) require arm-linux-androideabi- ? >> (And if so, why?) > >>From fpc/compiler/options.pas: > > { Set up a default prefix for binutils when cross-compiling } > if source_info.system

[fpc-pascal] Re: Very odd case parsing problem

2013-12-29 Thread leledumbo
> No, that shows a semicolon separating successive cases, not terminating each one Right, sorry I misinterpret "separate" with "terminate". -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Very-odd-case-parsing-problem-tp5717723p5717731.html Sent from the Free

Re: [fpc-pascal] Android cross-compiler: arm-linux-androideabi- binutilsprefix

2013-12-29 Thread Florian Klämpfl
Am 29.12.2013 14:12, schrieb Reinier Olislagers: > Complete log: http://pastebin.com/Bj2EGmWD > > FPC trunk, trying to get an Android ARM cross compiler going. > 1. Optimistically using FPC 2.6.2 as bootstrap - should I be using > trunk? (Trying that now anyway) > > Copied Android NDK crossbinuti

[fpc-pascal] Android cross-compiler: arm-linux-androideabi- binutilsprefix

2013-12-29 Thread Reinier Olislagers
Complete log: http://pastebin.com/Bj2EGmWD FPC trunk, trying to get an Android ARM cross compiler going. 1. Optimistically using FPC 2.6.2 as bootstrap - should I be using trunk? (Trying that now anyway) Copied Android NDK crossbinutils (as.exe etc) and libs (crtbegin_dynamic.o, libc.so) etc. Th

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Saunders, Rich
On 2013-12-28 15:47, Mark Morgan Lloyd wrote: I can fix that either by putting a semicolon before the else- which I believe is strictly incorrect- or by putting begin/end around that conditional, or by inserting a dummy statement before the else like quit_: if High(lexemeListArray) =

Re: [fpc-pascal] Re: Very odd case parsing problem

2013-12-29 Thread Sven Barth
Am 29.12.2013 09:10 schrieb "Mark Morgan Lloyd" < markmll.fpc-pas...@telemetry.co.uk>: > > leledumbo wrote: >>> >>> I can fix that either by putting a semicolon before the else- which I >> >> believe is strictly incorrect >> >> Nope, that's correct. Take a look at the syntax diagram for case statem

Re: [fpc-pascal] Re: Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
leledumbo wrote: I can fix that either by putting a semicolon before the else- which I believe is strictly incorrect Nope, that's correct. Take a look at the syntax diagram for case statement here: http://www.freepascal.org/docs-html/ref/refsu50.html As you can see, each "case" is terminated b