V.M.Pancov, 1-89 Engels st., Obninsk 249020, Tel(08439)52901

Copyright(c) 1998 Victor M.Pancov Russia Obninsk(08439)52901


       INTRODUCTION INTO PROGRAMMING BY LUX-LANGUAGE 

   In order  to begin  a process  of  programming  by  a new 
language,  it is nesessary a small program in this language, 
which is help developer to enter into the new language envi- 
ronment, and which contains a small set of functions,  which 
lets developer,  jast the same moment,  to begin an interac- 
tion to the new programming system. 

   Such possibility gives  the fundamental library functions 
set, which was called as the "realfun". 

   The fundamental  library functions set  "realfun",  which 
works in ordinary, 16-bits, real or protected mode  of Intel 
80x86 CPU, controled by BIOS and MS DOS session, inserts, by 
developer,  by same way,  as that showed  in next example of 
completed program, which can be translated and can run. 

!~      {}realfun 

~main   "O'KEY" @say ; 

~!      { @entry @cls @main @ink @return } ;; 

~~ 

   
   The {}realfun operator includes loading instructions code 
of the  fundamental  library  functions set  "realfun"  into 
the same place of the binary loading program. 

   Next,  between  the  {}realfun  operator  and  the "main" 
function, any developer  can include  his own functions  and 
can call theese functions from the "main" function or others 
own functions. 

   In the third string  of  this program  placed  the "root" 
function, which always calls first. 

   Any program finishes by the  ~~  (finish) operator, which 
always finishes the process of translation. 

   Any text, placed after the  ~~  (finish) operator, do not 
translates. 

   The "realfun" functions set  works  in dialog environment 
of LUX, which is handled  by the LUCED.COM editor - compiler 
which is called from the MS DOS session by next command: 

   luced.com realmod.luc realmod.com realmod.clb 

or for demonstration version of the editor - compiler: 

   lucedemo.com realmod.luc realmod.com realmod.clb 

where ised next parameters: 

realmod.luc - sourse text of the program in LUX language,
realmod.com - loading module, generated by compiler, 
realmod.clb - classes functions sets library. 

   LUX - system entering into  the system text editor,  just 
the same moment, after starting. 

   A developer can use the set of next functional key:        

Esc - the exit to compilation and the program execution. 
F10 - the exit to MS DOS. 
F9  - saving the source program text.  ^F9-copying the text. 

F1  - copy words identifier as assigned key for search text. 
F2  - find text of source program on the assigned key. 
F3  - selecting words of source program text.  
F4  - selecting strings of source program text.  
Ctrl F3 - clear the selection of text coded for WINDOWS. 
Ctrl F4 - clear the selection of text coded for MS-DOS. 
F5  - copying the selection of source program text or 
      multiplying the string, if there is not any selection. 
F6  - moving the selection of source program text. 
F7  - find text on the assigned key from beginning. 
Tab    - assign key and find text from beginning. 
Alt F7 - assign key and find text from beginning. 
Alt F7 - assign key and find text from current position. 
F7  - find text on the assigned key from beginning. 
F8  - deleting the selection of source program text or 
      deleting the string, if there is not any selection. 

->  - moving cursor on the word right. 
<-  - moving cursor on the word left. 
^-> - moving cursor right. 
^<- - moving cursor left. 

   Other keys are using for moving cursor, and for page down 
or page up moving so as its are in Norton Commander editor. 


   It is nesessary to use another set of function  realfunc, 
for compilation  by  independent compilator  LUCID.COM  into 
ready loading COM-module, so as it is in next exanple of the 
ready working program. 


!~      {}realfunc 

~main   "O'KEY" @say ; 

~!      { @entry @cls @main @ink @return } @exit 

~~ 

   There is nesessary  to use  the  call  function  operator 
@exit ,  which is replacing return operator   ;;   , in this 
exanple, in order to exit directly to MS DOS. 

   In this case, for starting compilation used next string: 


   lucid.com realmodc.luc realmodc.com realmod.clb 


or for demo version: 


   lucidemo.com realmodc.luc realmodc.com realmod.clb 


   It is  nesessary  to use  LUCED.COM - compiler  for quick 
experimental programs,  which help you to know  the new  and 
new possibilities of LUX programming system. 

   Please, start the LUCED.COM - compiler  and  I wish happy 
way to you in this direction. 


Copyright(c) 1998 Victor M.Pancov Russia Obninsk(08439)52901

V.M.Pancov, 1-89 Engels st., Obninsk 249020, Tel(08439)52901

