Recent

Author Topic: translator, from BAS to PAS  (Read 5187 times)

winni

  • Hero Member
  • *****
  • Posts: 2700
Re: translator, from BAS to PAS
« Reply #15 on: August 18, 2021, 06:37:32 pm »
I cant compile ...

I also cant compile. The compiler does it!!!

Show us the error message. And get used to it!

Winni

wp

  • Hero Member
  • *****
  • Posts: 8881
Re: translator, from BAS to PAS
« Reply #16 on: August 18, 2021, 06:38:24 pm »
These are my steps:
  • At the top of the file, add {$MODE TP}{$H-}
  • Compilation attempt --> For variable basic Error "Got Ansitring expected ShortString". Solution: basfile, pasfile are declared as AnsiString. Not sure, but I think this type does not exist in Turbo Pascal mode -> declare them as String
  • Next compilation attempt --> Error in FSplit(...): "String types have to match exactly in $V+ mode" --> Declare bPath, bName and bExt as String rather than String[100]
  • Next compilation attempt --> successful
I am attaching the modified file.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

juanirias

  • Jr. Member
  • **
  • Posts: 74
Re: translator, from BAS to PAS
« Reply #17 on: August 18, 2021, 07:48:45 pm »
Thanks!

now I have this error:



developer@Nitro-AN515-54:~/wip/MetOrbDet/BasPas$ ./bp TAYLOR.BAS
You compile TAYLOR.BAS with BasPas Version 0.602
Written by Andrea Tobian-Mezger 2003

Show also on:  http://groups.yahoo.com/group/BasPas
for informations and files

An unhandled exception occurred at $0000000000406505:
EInOutError: File not open
  $0000000000406505




juanirias

  • Jr. Member
  • **
  • Posts: 74
Re: translator, from BAS to PAS
« Reply #18 on: September 13, 2021, 05:25:21 am »
A kind reminder; I request help

af0815

  • Hero Member
  • *****
  • Posts: 715
Re: translator, from BAS to PAS
« Reply #19 on: September 13, 2021, 07:29:46 am »
BTW: Your link to the group is not working.


Quote
EInOutError: File not open
Have you looked for the file, which is not open.
regards
Andreas

juanirias

  • Jr. Member
  • **
  • Posts: 74
Re: translator, from BAS to PAS
« Reply #20 on: September 14, 2021, 05:37:57 am »
is correct, the group no longer exists!
the code was taken from here: https://www.exmortis.narod.ru/src_translate_eng.html/


regards, JUAN

 

TinyPortal © 2005-2018