QBtoTP Translator 0.5.2 (GNU/GPL)       Created with PowerBASIC for DOS 3.50
Copyright (C) 2001-2002 by Bla Valek   E-mail: bvalek2@freemail.hu
MS-DOS QBasic 1.1 -> Turbo Pascal 7.0

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


llomnyok:

QBtoTP  .EXE   futtathat fordt (PowerBASIC for DOS 3.50)
QBtoTP  .BAS   fordt forrskdja (PowerBASIC for DOS 3.50)
BASIC   .TPU   unit (Turbo Pascal 7.0)
BASIC   .PAS   unit forrskdja (Turbo Pascal 7.0)
COPYING        GNU/GPL dokumentum
OLVASSEL.TXT   ez a fjl (magyar)
README  .TXT   ez a fjl (angol)

A QBtoTP.EXE 0.5.0 kvetkez kapcsoli
    mkdnek: /A /C /M /Z /? /H /I
    nem mkdnek: /E /S /U
A /D kapcsol mkdik, de nincs jelentssge, mivel a DATA kezel parancsok
mg nem fordthatk le.

A TURBO.EXE, mely a BASIC.TPU unitot ksztette, javtott vltozat, nem okoz
hibazenetet Pentium s ksbbi processzoroknl.


Minimlis rendszerkvetelmnyek:

- IBM vagy kompatibilis PC
- Intel 8086 processzor
- DOS 2.0 opercis rendszer
- 199152 bjt alapmemria a program szmra, s tovbbi
  300000 bjt alapmemria memriatmbkkel trtn fordtshoz
- 294089 bjt szabad terlet egy meghajtn a fjlok szmra, s tovbbi
  tetszleges szabad terlet egy meghajtn tmenetifjlokkal trtn
  fordtshoz


Verzi klnbsgek/vltozsok:

QBtoTP 0.5.2

 - Bug fix: IF paracs bug fix a 0.5.2 -ben bug volt... fixlva...

QBtoTP 0.5.1

 - j: kilpsi kdok
 - j: tbb befejezett eljrs s fggvny a Basic unitban
 - Bug fix: SCREEN parancs fordtsi hiba kijavtva
 - Bug fix: QBscreen eljrs a Basic unitban kijavtva
 - Bug fix: IF parancs fordtsi hiba kijavtva
 - Hinyz adat: szerz e-mail cme feltntetve

QBtoTP 0.5.0

 - Els nyilvnos verzi


Fordtsi folyamat:

A fordt parancssori paramtereihez rja be:
QBtoTP.EXE /?

A fordt korltaihoz rja be:
QBtoTP /I

A fordt kilpsi kdjaihoz rja be:
QBtoTP /D

A QBtoTP.EXE alkalmazs egy magasszint fordt (programnyelvi rtelemben).
A QBASIC s a Turbo Pascal egyenrtk struktri kztt vgez
megfeleltetst. A fordts korltai attl fggnek, hogy mekkora az egyezs a
megfelel nyelvi elemek mkdse s hasznlata kztt. A Turbo Pascal
standard unitjaiban nem szerepl QBASIC eljrsokat s fggvnyeket kln
kell megrni. Egy rszk mr elkszlt. A QBtoTP fordt felttelezi, hogy a
Basic unitban vannak sszegyjtve, s meghatrozott szablyok szerint
kszltek.

A BASIC.TPU unit mg nincs ksz, mert nem volt r idm. Szabadon ki lehet
egszteni a unit forrskdjt. Az elre elksztett res eljrsok s
fggvnyek kompatibilisek, javasolt hasznlni ket.


Fordts clja:

1: A felhasznl nem ismeri a Pascal nyelvet, de a Basic-et igen, akkor
programjait megrja QBASIC-ben, lefordtja QBtoTP-vel, s gyors, kismret
futtathat llomnyokat kszt Turbo Pascallal.

2: A felhasznl a Basic nyelvet nem ismeri, a Pascalt igen, s kezbe kerlt
nhny QBASIC forrskd, akkor lefordtja QBtoTP-vel, s knnyen
felhasznlhatja ket.

3: A felhasznl szeretn a maga ltal rt QBASIC programot tbb
szmtgptpusra, s opercis rendszerre tvinni, viszont a QuickBasic-nek
csak kevs platformon ltezik megfelelje. A FreePascal viszont, mely teljes
mrtkben kompatibilis a Turbo Pascallal, tbb platformon is ltezik. Ezrt
lefordtja programjt QBtoTP-vel, s univerzlis alkalmazss teheti
FreePascallal.


Felismert, s fel nem ismert QBASIC 1.1 kulcsszavak:

teljes fordts:    + (147 db)
rszleges fordts: o  (33 db)
nincs fordts:     -  (61 db)
                      (241 db sszesen)

fordts Basic unittal:         (85 db)
teljes fordts Basic unittal:  (82 db)

QBASIC 1.1 kulcssz:         fordts:   hasznlt unit, megjegyzs:

ABS Function                     +       System
ABSOLUTE Keyword                 -
ACCESS Keyword                   -
AND Operator                     +       reserved word
ANY Keyword                      -
APPEND Keyword                   o       System
AS Keyword                       o       colon ":"
ASC Function                     +       System
ATN Function                     +       System
BASE Keyword                     o       QBtoTP internal directive
BEEP Statement                   +       Basic
BINARY Keyword                   o       System
BLOAD Statement                  +       Basic
BSAVE Statement                  +       Basic
CALL Statement                   o       keyword stripped
CALL ABSOLUTE Statement          -
CASE Keyword                     o       reserved word
CDBL Function                    +       Basic
CHAIN Statement                  +       Basic
CHDIR Statement                  +       System
CHR$ Function                    +       System
CINT Function                    +       Basic
CIRCLE Statement                 +       Basic
CLEAR Statement                  +       Basic, metacommand
CLNG Function                    +       Basic
CLOSE Statement                  +       System
CLS Statement                    +       Basic
COLOR Statement                  +       Basic
COM Statement                    -
COMMON Statement                 o       pascal structure "var"
CONST Statement                  +       reserved word
COS Function                     +       System
CSNG Function                    +       Basic
CSRLIN Function                  +       Crt
CVD Function                     +       Basic
CVDMBF Function                  +       Basic
CVI Function                     +       Basic
CVL Function                     +       Basic
CVS Function                     +       Basic
CVSMBF Function                  +       Basic
DATA Statement                   +       keyword stripped
DATE$ Function                   +       Basic
DATE$ Statement                  +       Basic
DECLARE Statement                +       line stripped
DEF FN Statement                 +       pascal structure "function"
DEF SEG Statement                +       BASIC.TPU internal variable
DEFDBL Statement                 +       QBtoTP internal directive
DEFINT Statement                 +       QBtoTP internal directive
DEFLNG Statement                 +       QBtoTP internal directive
DEFSNG Statement                 +       QBtoTP internal directive
DEFSTR Statement                 +       QBtoTP internal directive
DIM Statement                    o       pascal structure "var"
DO...LOOP Statement              o       reserved word
DOUBLE Keyword                   +       pascal data type
DRAW Statement                   +       Basic
$DYNAMIC Metacommand             -
ELSE Keyword                     +       reserved word
ELSEIF Keyword                   +       QBtoTP structure tracing -> "if"
END Statement                    +       System, reserved word
ENVIRON Statement                o       Basic
ENVIRON$ Function                +       Basic
EOF Function                     o       System
EQV Operator                     -
ERASE Statement                  -
ERDEV Function                   +       Basic
ERDEV$ Function                  +       Basic
ERL Function                     -
ERR Function                     +       Basic
ERROR Statement                  +       Basic
EXIT Statement                   +       System
EXP Function                     +       System
FIELD Statement                  -
FILEATTR Function                -
FILES Statement                  +       Basic
FIX Function                     +       System
FOR...NEXT Statement             +       reserved word "for", "while"
FRE Function                     o       Basic
FREEFILE Function                -
FUNCTION Statement               +       reserved word
GET (File I/O) Statement         o       System
GET (Graphics) Statement         -
GOSUB Statement                  -
GOTO Statement                   +       reserved word
HEX$ Function                    +       Basic
IF...THEN...ELSE Statement       +       reserved word
IMP Operator                     -
INKEY$ Function                  +       Basic
INP Function                     +       System
INPUT Statement                  o       System
INPUT$ Function                  +       Basic
INSTR Function                   +       Basic
INT Function                     +       System
INTEGER Keyword                  +       pascal data type
IOCTL Statement                  -
IOCTL$ Function                  -
IS Keyword                       -
KEY (Assignment) Statement       -
KEY (Event Trapping) Statement   -
KILL Statement                   +       Basic
LBOUND Function                  -
LCASE$ Function                  +       Basic
LEFT$ Function                   +       Basic
LEN Function                     +       System
LET Statement                    +       keyword stripped
LINE (Graphics) Statement        +       Basic
LINE INPUT Statement             o       System
LIST Keyword                     -
LOC Function                     o       System
LOCATE Statement                 +       Crt, Basic
LOCK...UNLOCK Statements         -
LOF Function                     o       System
LOG Function                     +       System
LONG Keyword                     +       pascal data type
LOOP Keyword                     o       reserved word
LPOS Function                    -
LPRINT Statement                 +       Printer
LPRINT USING Statement           -
LSET Statement                   -
LTRIM$ Function                  +       Basic
MID$ Function                    +       Basic
MID$ Statement                   +       Basic
MKD$ Function                    +       Basic
MKDIR Statement                  +       System
MKDMBF$ Function                 +       Basic
MKI$ Function                    +       Basic
MKL$ Function                    +       Basic
MKS$ Function                    +       Basic
MKSMBF$ Function                 +       Basic
MOD Operator                     +       reserved word
NAME Statement                   +       Basic
NEXT Keyword                     +       reserved word "end"
NOT Operator                     +       reserved word
OCT$ Function                    +       Basic
OFF Keyword                      -
ON COM Statement                 -
ON ERROR Statement               -
ON Keyword                       -
ON KEY Statement                 -
ON PEN Statement                 -
ON PLAY Statement                -
ON STRIG Statement               -
ON TIMER Statement               -
ON...GOSUB Statement             -
ON...GOTO Statement              -
OPEN Statement                   o       System
OPEN COM Statement               -
OPTION BASE Statement            o       QBtoTP internal directive
OR Operator                      +       reserved word
OUT Statement                    +       System
OUTPUT Keyword                   o       System
PAINT Statement                  +       Basic
PALETTE Statements               o       Basic
PCOPY Statement                  +       Basic
PEEK Function                    +       System
PEN Function                     -
PEN Statement                    -
PLAY Function                    -
PLAY (Music) Statement           +       Basic
PLAY (Event Trapping) Statements -
PMAP Function                    +       Basic
POINT Function                   +       Graph
POKE Statement                   +       System
POS Function                     +       Basic
PRESET Statement                 +       Basic
PRINT Statement                  o       System
PRINT USING Statement            -
PSET Statement                   +       Basic
PUT (File I/O) Statement         o       System
PUT (Graphics) Statement         -
RANDOM Keyword                   o       System
RANDOMIZE Statement              +       Basic
READ Statement                   -
REDIM Statement                  o       pascal structure "var"
REM Statement                    +       pascal comment "{}"
RESET Statement                  -
RESTORE Statement                -
RESUME Statement                 -
RETURN Statement                 -
RIGHT$ Function                  +       Basic
RMDIR Statement                  +       System
RND Function                     +       System
RSET Statement                   -
RTRIM$ Function                  +       Basic
RUN Statement                    +       Basic
SCREEN Function                  +       Basic
SCREEN Statement                 +       Basic
SEEK Function                    o       System
SEEK Statement                   o       System
SELECT CASE Statement            o       reserved word
SGN Function                     +       Basic
SHARED Statement                 o       pascal structure "var"
SHELL Statement                  +       Basic
SIN Function                     +       System
SINGLE Keyword                   +       pascal data type
SLEEP Statement                  +       Basic
SOUND Statement                  +       Basic
SPACE$ Function                  +       Basic
SPC Function                     +       Basic
SQR Function                     +       System
STATIC Statement                 -
$STATIC Metacommand              -
STEP Keyword                     +       reserved word "while"
STICK Function                   -
STOP Statement                   +       System
STR$ Function                    +       Basic
STRIG Function                   +       Basic
STRIG Statements                 -
STRING Keyword                   +       pascal data type
STRING$ Function                 +       Basic
SUB Statement                    o       pascal structure "procedure"
SWAP Statement                   +       Basic
SYSTEM Statement                 +       System
TAB Function                     +       Basic
TAN Function                     +       Basic
THEN Keyword                     +       reserved word
TIME$ Function                   +       Basic
TIME$ Statement                  +       Basic
TIMER Function                   +       Basic
TIMER Statements                 -
TO Keyword                       +       reserved word, ".."
TROFF Statement                  -
TRON Statement                   -
TYPE Statement                   +       pascal structure "type"
UBOUND Function                  -
UCASE$ Function                  +       Basic
UNLOCK Statement                 -
UNTIL Keyword                    o       reserved word
USING Keyword                    -
VAL Function                     +       Basic
VARPTR Function                  +       System
VARPTR$ Function                 +       System
VARSEG Function                  +       System
VIEW Statement                   +       Basic
VIEW PRINT Statement             +       Basic
WAIT Statement                   +       Basic
WEND Keyword                     +       reserved word "end"
WHILE...WEND Statement           +       reserved word
WIDTH Statements                 -
WINDOW Statement                 +       Basic
WRITE Statement                  o       System
XOR Operator                     +       reserved word
