· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
yabasic

Manual of Yabasic

yabasicÀÇ À¥»çÀÌÆ®´Â http://www.yabasic.de ÀÔ´Ï´Ù.

(Âü°í·Î, ¸Þ´º¾óÀÇ À§Ä¡´Â http://www.yabasic.de/yabasic.htm ÀÔ´Ï´Ù.)

Contents

1. Manual of Yabasic
2. ¼Ò°³
2.1. ÀÌ ¹®¼­¿¡ ´ëÇÏ¿©
2.2. yabasic¿¡ ´ëÇÏ¿©
3. Windows¿¡¼­ ½ÇÇàµÇ´Â yabasic ÇÁ·Î±×·¥
3.1. yabasic ½ÃÀÛÇϱâ
3.2. ¿É¼Ç
3.3. context menu
4. Unix¿¡¼­ ½ÇÇàµÇ´Â yabasic ÇÁ·Î±×·¥
4.1. yabasic ½ÃÀÛÇϱâ
4.2. ¿É¼Ç
4.3. defaults ¼³Á¤Çϱâ
5. ÁÖÁ¦¿¡ ÀÇÇØ ¼³¸íµÈ yabasicÀÇ ¸î °¡Áö Ư¡µé
5.1. print, input°ú ±×¿ÜÀÇ °Íµé
5.2. ÄÁÆ®·Ñ ±¸¹® ; loops, if ±×¸®°í switch
5.3. Drawing °ú Painting
5.4. ÆÄÀÏ¿¡ ¾²±âºÎÅÍ Àбâ±îÁö
5.5. ¼­ºê·çƾ°ú ¶óÀ̺귯¸®
5.6. ¹®ÀÚ¿­ ó¸®
5.7. °è»ê
5.8. µ¥ÀÌÅÍ
5.9. ´Ù¸¥ Èï¹Ì·Î¿î ¸í·É¾îµé
6. ÁÖÁ¦¿¡ ÀÇÇØ ¸ñ·ÏÈ­µÈ ¸ðµç ¸í·É¾î¿Í ÇÔ¼öµé
6.1. ¼ýÀÚ Ã³¸®¿Í º¯È¯
6.1.1. abs ()
6.1.2. acos ()
6.1.3. and()
6.1.4. asin()
6.1.5. atan()
6.1.6. bin$()
6.1.7. cos()
6.1.8. dec()
6.1.9. eor()
6.1.10. euler
6.1.11. exp()
6.1.12. frac()
6.1.13. int()
6.1.14. log()
6.1.15. max()
6.1.16. min()
6.1.17. mod()
6.1.18. or()
6.1.19. pi
6.1.20. ran()
6.1.21. sig()
6.1.22. sin()
6.1.23. sqr()
6.1.24. sqrt()
6.1.25. tan()
6.1.26. xor()
6.1.27. **or^
6.2. Á¶°Ç°ú Á¶Àý ±¸¹®
6.2.1. and
6.2.2. break
6.2.3. case
6.2.4. continue
6.2.5. default
6.2.6. do
6.2.7. else
6.2.8. elsif
6.2.9. false
6.2.10. fi
6.2.11. for
6.2.12. gosub
6.2.13. goto
6.2.14. if
6.2.15. label
6.2.16. loop
6.2.17. next
6.2.18. not
6.2.19. on gosub
6.2.20. on goto
6.2.21. on interrupt
6.2.22. logical or
6.2.23. pause
6.2.24. repeat
6.2.25. return
6.2.26. sleep
6.2.27. switch
6.2.28. then
6.2.29. true
6.2.30. until
6.2.31. wait
6.2.32. wend
6.2.33. while
6.2.34. .
6.3. ÀÚ·á °ü¸®¿Í ó¸®
6.3.1. arraydim()
6.3.2. arraysize()
6.3.3. data
6.3.4. dim
6.3.5. read
6.3.6. redim
6.3.7. restore
6.4. ¹®ÀÚ¿­ ó¸®
6.4.1. asc()
6.4.2. chr$()
6.4.3. glob()
6.4.4. hex$()
6.4.5. instr()
6.4.6. left$()
6.4.7. len()
6.4.8. lower$()
6.4.9. ltrim$()
6.4.10. mid$()
6.4.11. right$()
6.4.12. split()
6.4.13. str$()
6.4.14. token()
6.4.15. trim$()
6.4.16. upper$()
6.4.17. val()
6.5. ÆÄÀÏ ¿î¿µ°ú Ãâ·ÂÇϱâ
6.5.1. at()
6.5.2. beep
6.5.3. bell
6.5.4. clear screen
6.5.5. close
6.5.6. close printer
6.5.7. print color
6.5.8. print colour
6.5.9. eof
6.5.10. getscreen$()
6.5.11. inkey$
6.5.12. input
6.5.13. line input
6.5.14. open
6.5.15. open printer
6.5.16. print
6.5.17. putscreen
6.5.18. reverse
6.5.18.1. screen
6.5.19. seek()
6.5.20. tell
6.5.21. using
6.5.22. '#'
6.5.23. @
6.5.24. ;
6.6. ¼­ºê·çƾ°ú ¶óÀ̺귯¸®
6.6.1. end sub
6.6.2. export
6.6.3. import
6.6.4. local
6.6.5. numparams
6.6.6. return
6.6.7. static
6.6.8. step
6.6.9. sub
6.7. ´Ù¸¥ ¸í·É¾îµé
6.7.1. bind()
6.7.2. compile
6.7.3. date$
6.7.4. doc
6.7.5. docu$
6.7.6. error
6.7.7. execute$()
6.7.8. execute()
6.7.9. exit
6.7.10. pause
6.7.11. peek
6.7.12. peek$
6.7.13. poke
6.7.14. rem
6.7.15. sleep
6.7.16. system$()
6.7.17. system()
6.7.18. time$
6.7.19. to
6.7.20. wait
6.7.21. //
6.7.22. :
6.8. ±×·¡ÇÈ°ú Ãâ·Â
6.8.1. backcolor
7. ´ëÈ­
8. FAQ
9. yabasic¿¡ °üÇÑ ±ÇÇÑ
10. °Ô½ÃÆÇ

2. ¼Ò°³

2.1. ÀÌ ¹®¼­¿¡ ´ëÇÏ¿©

ÀÌ ¹®¼­´Â º£ÀÌÁ÷ ¾ð¾î ±× ÀÚü »Ó¸¸ ¾Æ´Ï¶ó UNIX¿¡¼­ yabasic ¶Ç´Â À©µµ¿ì¿¡¼­ yabasic.exeÀ¸·Î ½ÇÇàµÇ´Â yabasic ÀÎÅÍÇÁ¸®ÅÍ¿¡ ´ëÇØ ¼³¸íÇÕ´Ï´Ù.

ÀÌ ¹®¼­ÀÇ ³»¿ëÀº yabasicÀÇ 2.760 ¹öÀüÀ» ±âÁØÀ¸·Î ¼³¸íµÇ¾î ÀÖ½À´Ï´Ù. µû¶ó¼­ yabasic¿¡ ´ëÇÑ ÃֽŠ¼Ò½ÄÀ̳ª FAQ¸¦ Æ÷ÇÔÇÏÁö ¾Ê½À´Ï´Ù. ³»¿ëÀÌ ÀÚÁÖ ¹Ù²ð ¼ö ÀÖÀ¸¹Ç·Î ÃֽŠ³»¿ëÀ» º¸·Á¸é [http]http://www.yabasic.deÀ» ¹æ¹®ÇϽñ⠹ٶø´Ï´Ù.

BasicÀÌ ÇÁ·Î±×·¡¹ÖÀ» óÀ½À¸·Î ½ÃÀÛÇÏ´Â ÇÁ·Î±×·¡¸ÓµéÀ» À§ÇÑ ¾ð¾î·Î¼­ À¯¸íÇÏÁö¸¸, ÀÌ ¹®¼­¿¡¼­´Â º£ÀÌÁ÷ ¾ð¾î¿¡ ´ëÇØ ÀÚ¼¼È÷ ¼Ò°³ÇÏÁö ¾Ê½À´Ï´Ù. ÀÌ ¹®¼­¸¦ ÅëÇÏ¿© µ¶ÀÚ°¡ ÄÄÇ»ÅÍ ÇÁ·Î±×·¥À» ¾²°í ½ÃÀÛÇÏ´Â ÃÖÃÊÀÇ °æÇèÀ» °¡Áö°Ô µÉ °ÍÀÔ´Ï´Ù.

2.2. yabasic¿¡ ´ëÇÏ¿©

yabasicÀº ÀüÅëÀûÀÎ basic ÀÎÅÍÇÁ¸®ÅÍÀÔ´Ï´Ù. yabasic¿¡¼­´Â goto, gosub, line numbers, read, data ȤÀº '$'·Î ³¡³ª´Â ¹®ÀÚ º¯¼ö °°Àº ÀϹÝÀûÀÎ basic ¹®¹ýÀÇ ´ëºÎºÐÀÌ »ç¿ëµË´Ï´Ù. ±×·¯³ª (objects°¡ ¾Æ´Ñ) subroutine°ú library°°Àº Á¶±Ý ´õ ¹ßÀüµÈ ÇÁ·Î±×·¡¹Ö ±¸¹®µµ ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù. yabasicÀº Unix¿Í Windows¿¡¼­ ¶È°°ÀÌ ÀÛµ¿ÇÕ´Ï´Ù.

yabasicÀ» »ç¿ëÇÏ¸é ºü¸£°í ½±°Ô °á°ú¸¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. ±×·¯¹Ç·Î ´Ü¼øÇÑ ¸í·ÉµéÀº ±×·¡ÇÈ Ã¢À» ¿­¾î ±× ±×·¡ÇȵéÀ» Ãâ·ÂÇϰųª ÄÜ¼Ö È­¸éÀ¸·ÎºÎÅÍ Å°º¸µå³ª ¸¶¿ì½º Á¤º¸¸¦ ¾ò¾î Á¦°øµÇ¾îÁý´Ï´Ù.

´ÙÀ½ ¿¹Á¦ ÄÚµå´Â âÀ» ¿­°í ¿øÀ» ±×¸³´Ï´Ù.
open window 100,100
open printer
circle 50,50,40
text 10,50,"Press any key to get a printout"
clear screen 
inkey$
close printer
close window

ÀÌ ¿¹Á¦´Â ¸¹Àº ´Ù¸¥ ÇÁ·Î±×·¡¹Ö ¾ð¾îµéº¸´Ù ´õ ÀûÀº ÁÙ ¼ö¸¦ °®½À´Ï´Ù. ±×·¯³ª °á±¹ yabasicÀº C++ À̳ª Java°°Àº ´õ ¾Õ¼­°í Çö´ëÀûÀÎ ÇÁ·Î±×·¡¹Ö ¾ð¾îµéº¸´Ù ¸¹ÀÌ ºÎÁ·ÇÕ´Ï´Ù. ÇÏÁö¸¸ yabsicÀ» »ç¿ëÇÔÀ¸·Î½á ´õ ºü¸£°í ½±°Ô °á°ú¸¦ º¸¿©ÁÙ ¼ö ÀÖ½À´Ï´Ù.

3. Windows¿¡¼­ ½ÇÇàµÇ´Â yabasic ÇÁ·Î±×·¥

3.1. yabasic ½ÃÀÛÇϱâ

yabasicÀ» ½ÃÀÛÇÏ´Â ¹æ¹ýÀº ¼¼ °¡Áö°¡ ÀÖ½À´Ï´Ù.

  1. ¹ÙÅÁ È­¸é¿¡¼­ ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ°À» Ŭ¸¯ÇÏ¿© »õ·Î ¸¸µé±â - yabasicÀ» ¼±ÅÃÇÏ¿© »õ·Î¿î ¾ÆÀÌÄÜÀ» ¸¸µì´Ï´Ù. ¸¸¾à ´ç½ÅÀÌ ÀÌ ¾ÆÀÌÄÜ À§¿¡¼­ ¸¶¿ì½º ¿À¸¥ÂÊÀ» Ŭ¸¯ÇÑ´Ù¸é ¼¼ºÎ¸Þ´º°¡ ³ªÅ¸³¯ °ÍÀÔ´Ï´Ù. ;¿¬°á ÇÁ·Î±×·¥À» ¼±ÅÃÇÕ´Ï´Ù.

  2. °£´ÜÈ÷ ´ç½ÅÀÌ ÁÁ¾ÆÇÏ´Â ÆíÁý±â·Î .yabÀ¸·Î ³¡³ª´Â ÆÄÀÏÀ» ¸¸µé¸é µË´Ï´Ù.

  3. ½ÃÀÛ ¸Þ´º¿¡¼­ yabasicÀ» ¼±ÅÃÇÏ¿© ÄÜ¼Ö Ã¢À» ¿±´Ï´Ù.½ÇÇàµÈ ÇÁ·Î±×·¥¿¡¼­´Â Å°º¸µå·Î Äڵ带 ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿£ÅÍ Å°¸¦ µÎ ¹ø ÀÔ·ÂÇϸé, yabasicÀº ´ç½ÅÀÇ ÇÁ·Î±×·¥À» ½ÇÇà ÇÒ °ÍÀÔ´Ï´Ù. (ÁÖÀÇ: ¿©±â¼­ ÀÔ·ÂÇÑ ³»¿ëÀº º¸Á¸µÇÁö ¾Ê½À´Ï´Ù.)

3.2. ¿É¼Ç

Windows¿ë yabasicÀº ´ëºÎºÐ ¾ÆÀÌÄÜÀ» ´õºí Ŭ¸¯ÇÏ´Â °ÍÀ¸·Î ½ÇÇàµÇ¹Ç·Î, ¸í·ÉÇà ¿É¼ÇÀ» ¾²±â ¾î·Æ½À´Ï´Ù. ±×·¯³ª ·¹Áö½ºÆ®¸®ÀÇ ÀûÀýÇÑ °÷¿¡ ¿É¼ÇÀ» ³ÖÀ» ¼ö ÀÖ½À´Ï´Ù.

¾Æ·¡ ¸ðµç ¿É¼ÇµéÀº ªÀº ¸í·É¾î°¡ µÎ °¡Áö Àǹ̷ΠÇؼ®µÇÁö ¾Ê´Â ÇÑ, ªÀº ÇüÅ·Π»ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, - excute ´ë½Å¿¡ - e¸¦ ¾µ ¼ö ÀÖ½À´Ï´Ù.

- help ȤÀº - ?
  
   µµ¿ò¸» ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÕ´Ï´Ù.

- version 

   yabasicÀÇ ¹öÀüÀ» Ãâ·ÂÇÕ´Ï´Ù. 

- geometry +X-Position+Y-Position</code>

   ±×·¡ÇÈ Ã¢ÀÇ À§Ä¡¸¦ ¼³Á¤ÇÕ´Ï´Ù, ´Ù½Ã ¸»Çϸé open window (¹°·Ð, âÀÇ Å©±â´Â open window ¸í·É ¾È¿¡ ¸í½Ã
   µË´Ï´Ù.) È­¸éÀÇ ¿ÞÂÊ Å׵θ®¿¡¼­ ¿À¸¥ÂÊÀ¸·Î 20 pixels °¡°í À§ÂÊ Å׵θ®¿¡¼­ ¾Æ·¡·Î 10 pixels ¿¡ ±×·¡ÇÈ
   âÀ» ¹èÄ¡Ç϶ó´Â ÇÑ ¿¹´Â - geometry +20+10 ÀÔ´Ï´Ù. ÀÌ °ªÀº ÀÏ´Ü yabasicÀÌ ½ÃÀÛµÇ¸é º¯ÇÒ ¼ö ¾ø½À´Ï´Ù.

- font NAME-OF-FONT 

   ±×·¡ÇÈ ÆùÆ®·Î »ç¿ëµÉ ÆùÆ®ÀÇ À̸§Àº decorative, dontcare, modern, roman, script, swiss ¾î¶²°Íµµ µÉ
   ¼ö ÀÖ½À´Ï´Ù. ´ç½ÅÀº ÀÌ ÆùÆ®À̸§µé Áß¿¡ ¾î¶² °Í¿¡µµ (pixels·Î ÃøÁ¤µÈ) ÆùƮũ±â¸¦ ÷°¡ ÇÒ ¼ö ÀÖ½À´Ï
   ´Ù. ; ¿¹¸¦ µé¾î - font swiss30Àº 30 pixelsÀÇ Å©±â¸¦ °¡Áø swiss ÆùÆ®¸¦ ¼±ÅÃÇÕ´Ï´Ù.

- bind NAME-OF-STANDALONE-PROGRAM

  ´Ù½Ã ¸»Çϸé Ä¿¸Çµå¶óÀÎ»ó¿¡ ¸í½ÃµÈ ÇÁ·Î±×·¥À¸·ÎºÎÅÍ (NAME-OF-STANDALONE-PROGRAM¿¡ ÀÇÇØ ¸í½ÃµÈ 
  À̸§À» °¡Áø µ¶¸³ÇüÀÇ ÇÁ·Î±×·¥À» âÁ¶ÇÕ´Ï´Ù. ¼¼ºÎ»çÇ×Àº 'µ¶¸³Çü ÇÁ·Î±×·¥ âÁ¶Çϱâ' ¿¡ ´ëÇÑ ¼½¼ÇÀ»
  º¸½Ê½Ã¿ä.

- excute A-PROGRAM-AS-A-SINGLE-STRING

  ÀÌ ¿É¼ÇÀ» °¡Áö°í ´ç½ÅÀº Áï½Ã ½ÇÇà Çϱâ À§ÇØ ¾î¶² yabasic Äڵ忡 Á¶°ÇÀ¸·Î ÁöÁ¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. 
  ÀÌ°ÍÀº ´ç½ÅÀÌ ÆÄÀÏ·Î ÀúÀåÇÏ±æ ¿øÄ¡ ¾Ê´Â °£´ÜÇÑ ÇÁ·Î±×·¥¿¡ À¯¿ëÇÕ´Ï´Ù. ¸¸¾à ÀÌ ¿É¼ÇÀÌ ÁÖ¾îÁø´Ù¸é,
  ´ç½ÅÀº ÇÑ ÆÄÀϷκÎÅÍ ¾î¶² Äڵ嵵 ÀÐÁö ¸øÇÒ °ÍÀÔ´Ï´Ù. ´ç½ÅÀÌ 1°ú 10»çÀÌ¿¡ Æò¹æ¼ö ¸î°³¸¦ ÀØ¾î ¸Ô¾ú´Ù
  °í °¡Á¤Çغ¾´Ï´Ù.; ÀÌ °æ¿ì¿¡ ÀÖ¾î yabasic ¸í·É¾î - e 'for a=1 to 10:print a*a:next a' ´Â Áï½Ã ´ç½Å¿¡°Ô 
  ´äÀ» ÁÙ °ÍÀÔ´Ï´Ù. 

- infolevel INFOLEVEL 

  INFOLEVELÀÌ debug, note, warning, error ±×¸®°í fatalÀÇ Çϳª°¡ µÉ ¼ö ÀÖ´Â °÷ÀÎ , (default°¡ 
  °æ°íÇÏ°í ÀÖ´Â) yabasicÀÇ infolevelÀ» º¯È­½ÃŲ´Ù. ÀÌ ¿É¼ÇÀº yabasicÀÌ ¸¸µé¾î ³½ debugging 
  Á¤º¸ÀÇ ¾çÀ» º¯È­½Ãŵ´Ï´Ù. ±×·¯³ª Á¤»óÀûÀ¸·Î yabasicÀÇ ÀÛ°¡ (³ª!) ¸¸ÀÌ ÀÌ °ÍÀ» º¯È­½ÃÅ°±æ ¿øÇÕ´Ï´Ù.

- doc NAME-OF-A-PROGRAM

  ÁöÁ¤µÈ ÇÁ·Î±×·¥ÀÇ ³»ÀåµÈ ¹®¼­¸¦ Ãâ·ÂÇÕ´Ï´Ù. ÇÁ·Î±×·¥ÀÇ ³»ÀåµÈ ¹®¼­´Â Ưº°ÇÑ Å°¿öµå doc·Î ½ÃÀÛÇÏ
  ´Â ±× ÇÁ·Î±×·¥ ¾È ÂÊ¿¡ ¸ðµç Çؼ³·Î ±¸¼ºµÇ¾î ÀÖ½À´Ï´Ù. ÀÌ ¹®¼­´Â ¾î¶² yabasic ÇÁ·Î±×·¥ÀÇ ¼¼ºÎ 
  ¸Þ´º·ÎºÎÅÍ »óÀÀÇÏ´Â ÀÔ±¸¸¦ ¼±ÅÃÇÔÀ¸·Î½á º¸¿©Áú ¼ö ÀÖ½À´Ï´Ù.

- librarypath DIRECTORY-WITH-LIBRARIES

  (import ¸í·ÉÀ» °¡Áö°í) libraryµé ±× Áß¿¡ ã°í °¡Á®¿À°Ô ÇÒ, µð·ºÅ丮¸¦ º¯È­½Ãŵ´Ï´Ù. ¿ª½Ã 
  library¸¦ ãÀ» ¹æ¹ý¿¡ ´ëÇÑ ´õ ¸¹Àº Á¤º¸´Â ÀÌ ¿£Æ®¸®¸¦ º¸½Ê½Ã¿ä.
 

3.3. context menu


windows »ó¿¡ ¸ðµç ´Ù¸¥ ¾ÆÀÌÄÜ Ã³·³, ¸ðµç yabasic ÇÁ·Î±×·¥ÀÇ ¾ÆÀÌÄÜÀº yabasic¿¡ Àû¿ë ½Ãų °¡Àå ÈçÇÑ µ¿ÀÛÀ» Á¦°øÇÏ´Â context menu¸¦ °¡Áö°í ÀÖ½À´Ï´Ù.
Excute 

  ÀÌ°ÍÀº ´ç½ÅÀÇ ÇÁ·Î±×·¥ÀÌ ½ÇÇà µÇµµ·Ï yabasic¿¡°Ô ±â¿ø ÇÒ °ÍÀÔ´Ï´Ù. ¸¸¾à ´ç½ÅÀÌ ¾ÆÀÌÄÜÀ» ´õºíŬ¸¯ÇÑ´Ù¸é 
  ¶È°°Àº ÀÏÀÌ ¹ß»ýÇÕ´Ï´Ù. 

Edit 

  notepad°¡ ´ç½ÅÀÇ ÇÁ·Î±×·¥À» ÆíÁýÇϵµ·Ï ±â¿ø ÇÒ °ÍÀÔ´Ï´Ù. 

View docu

  ÀÌ°ÍÀº ´ç½ÅÀÇ ÇÁ·Î±×·¥¿¡ ³»ÀåµÈ ¹®¼­¸¦ Á¦°ø ÇÒ °ÍÀÔ´Ï´Ù. ³»ÀåµÈ ¹®¼­´Â Ưº°ÇÑ Çؼ³ doc¸¦ °¡Áö°í 
  âÁ¶µÉ°ÍÀÔ´Ï´Ù.

4. Unix¿¡¼­ ½ÇÇàµÇ´Â yabasic ÇÁ·Î±×·¥

4.1. yabasic ½ÃÀÛÇϱâ


¸¸¾à ´ç½ÅÀÇ ½Ã½ºÅÛ °ü¸®ÀÚ°¡ Á¤È®ÇÏ°Ô yabasicÀ» ÀνºÅç½ÃÄ×´Ù¸é, ½ÃÀÛÇÏ´Â ¼¼ °¡Áö ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.:

  1. ´ç½ÅÀº ÆÄÀÏ (¿¹¸¦ µé¾î, foo) ·Î ´ç½ÅÀÇ ÇÁ·Î±×·¥À» ¹èÄ¡ÇØ ³õ±â À§ÇØ ´ç½ÅÀÇ ¼±È£ÇÏ´Â ÆíÁý±â (emacs, vi?)¸¦ »ç¿ëÇصµ µË´Ï´Ù. yabasicÀÇ ¿Ïº®ÇÑ °æ·Î (¿¹¸¦ µé¾î, '#!/usr/local/bin/yabasic') ÀÇ Ã¹¹ø° ¶óÀÎÀÌ ¹®ÀÚ'#'À» °¡Áö°í ½ÃÀÛ ÇÏ´ÂÁö È®ÀÎÇÕ´Ï´Ù. ÀÌ she-bang-lineÀÌ ´ç½ÅÀÇ Unix°¡ yabasic ÇÁ·Î±×·¥À» ½ÇÇà½ÃÄÑ ÁÙ °ÍÀ̶ó È®½ÅÇÕ´Ï´Ù. (¿ª½Ã hash ¹®ÀÚ¸¦ »ìÆ캸½Ê½Ã¿ä.) °Ô´Ù°¡, ´ç½ÅÀº ´ç½ÅÀÇ yabasic ÇÁ·Î±×·¥À» (¿¹¸¦ µé¾î, chmod u+x foo) foo·Î permissionÀ» ¹Ù²Ù´Â°Ô ÇÊ¿äÇÒ °ÍÀÔ´Ï´Ù. ±× ÈÄ¿¡ (½ÉÁö¾î yabasicÀÇ ¾ð±ÞÁ¶Â÷ ¾øÀÌ) ´Ü¼øÈ÷ foo¸¦ ŸÀÌÇÎÇÔÀ¸·Î¼­ ´ç½ÅÀÇ ÇÁ·Î±×·¥À» ½ÇÇà½Ãų °ÍÀÔ´Ï´Ù. ±×·¯³ª, ¸¸¾à °æ·Î°¡ Á¡ ('.') Çϳª¸¦ Æ÷ÇÔÇÏÁö ¾Ê¾Ò´Ù¸é, ´ç½ÅÀº ¿¹¸¦ µé¾î ÇÁ·Î±×·¥ÀÇ ¿ÏÀüÇÑ °æ·Î (/home/ihm/foo ³ª Àû¾îµµ ./foo) ¸¦ ŸÀÌÇÎ ÇØ¾ß ÇÒ °ÍÀÔ´Ï´Ù.

  2. ÆÄÀÏ (¿¹¸¦µé¾î, foo) ·Î ´ç½ÅÀÇ ÇÁ·Î±×·¥À» ÀúÀåÇÏ°í yabasic foo¸¦ ŸÀÌÇÎÇÕ´Ï´Ù. ÀÌ°ÍÀº yabasicÀÌ À§Ä¡ÇÑ µð·ºÅ丮°¡ °æ·Î¿¡ Æ÷ÇԵǾú´Ù¶ó°í °¡Á¤ÇÏ°í ÀÖ½À´Ï´Ù.


  3. ¸¶Áö¸·À¸·Î ´ç½ÅÀº ´Ü¼øÈ÷ yabasic (¾Æ¸¶µµ ±×°ÍÀÇ ¿ÏÀüÇÑ °æ·Î°¡ ÇÊ¿äÇÏ°Ô °ÍÀÌ´Ù.) À» ŸÀÌÇÎ ÇÕ´Ï´Ù. ÀÌ°ÍÀº yabasic ¸ð½ÀÀ» µå·¯³»°Ô ¸¸µé °ÍÀÌ°í ´ç½ÅÀÌ ´ç½ÅÀÇ ÇÁ·Î±×·¥¾È¿¡ ŸÀÌÇÎ Ä¡µµ·Ï ¿äû¹Þ°Ô µÉ °ÍÀÔ´Ï´Ù. ÀÏ´Ü ´ç½ÅÀÌ ³¡¸¶ÃÆ´Ù¸é, ´ç½ÅÀº ¿£ÅÍÅ°¸¦ µÎ ¹ø Ä¡´Â °Ô ÇÊ¿äÇϸç yabasicÀº ´ç½ÅÀÇ ÇÁ·Î±×·¥À» ºÐ¼®ÇÏ¿© ½ÇÇà ÇÒ °ÍÀÔ´Ï´Ù.(ÁÖÀÇ: ¿©±â¼­ ÀÔ·ÂÇÑ ³»¿ëÀº º¸Á¸µÇÁö ¾Ê½À´Ï´Ù.)

4.2. ¿É¼Ç


¾Æ·¡ ¸ðµç ¿É¼ÇµéÀº ªÀº ¸í·É¾î°¡ µÎ °¡Áö Àǹ̷ΠÇؼ®µÇÁö ¾Ê´Â ÇÑ, ªÀº ÇüÅ·Π»ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, - excute ´ë½Å¿¡ - e¸¦ ¾µ ¼ö ÀÖ½À´Ï´Ù.

- help ȤÀº - ?
  
   µµ¿ò¸» ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÕ´Ï´Ù.

- version 

   yabasicÀÇ ¹öÀüÀ» Ãâ·ÂÇÕ´Ï´Ù. 

-fg FOREGROUND-COLOR ȤÀº -foreground FOREGROUND-COLOR

  (open window·Î ¿­¸®°Ô µÉ) ±×·¡ÇÈ Ã¢ÀÇ foreground »ö±òÀ» ±ÔÁ¤ÇÕ´Ï´Ù. red, green ... °°Àº Æò¹üÇÑ x11 
  »ö±ò¸íµéÀÌ ¹Þ¾Æµé¿©Áý´Ï´Ù. ÀÏ´Ü yabasicÀÌ ½ÃÀ۵Ǹé ÀÌ °ªÀº º¯ÇÒ¼ö ¾ø½À´Ï´Ù.

-bg BACKGROUND-COLOR or -background BACKGROUND-COLOR
  
  ±×·¡ÇÈ Ã¢ÀÇ background colorÀ» ±ÔÁ¤ÇÕ´Ï´Ù. Æò¹üÇÑ x11 »ö±ò¸íµéÀÌ ¹Þ¾Æµé¿©Áý´Ï´Ù. ÀÏ´Ü yabasicÀÌ ½ÃÀÛ
  µÇ¸é ÀÌ °ªÀº º¯ÇÒ¼ö ¾ø½À´Ï´Ù.

- geometry +X-Position+Y-Position</code>

   ±×·¡ÇÈ Ã¢ÀÇ À§Ä¡¸¦ ¼³Á¤ÇÕ´Ï´Ù, ´Ù½Ã ¸»Çϸé open window (¹°·Ð, âÀÇ Å©±â´Â open window ¸í·É ¾È¿¡ ¸í½Ã
   µË´Ï´Ù.) È­¸éÀÇ ¿ÞÂÊ Å׵θ®¿¡¼­ ¿À¸¥ÂÊÀ¸·Î 20 pixels °¡°í À§ÂÊ Å׵θ®¿¡¼­ ¾Æ·¡·Î 10 pixels ¿¡ ±×·¡ÇÈ
   âÀ» ¹èÄ¡Ç϶ó´Â ÇÑ ¿¹´Â - geometry +20+10 ÀÔ´Ï´Ù. ÀÌ °ªÀº ÀÏ´Ü yabasicÀÌ ½ÃÀÛµÇ¸é º¯ÇÒ ¼ö ¾ø½À´Ï´Ù.

- display BACKGROUND-COLOR

    yabasicÀÇ ±×·¡ÇÈ Ã¢ÀÌ ³ªÅ¸³ª¾ß¸¸ ÇÏ´Â °÷ÀÎ display¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ±×·¯³ª, º¸ÅëÀº ÀÌ °ªÀº DISPLAY ȯ°æ
    ¾È¿¡ ÀÌ¹Ì Á¦°ø µÉ °ÍÀÔ´Ï´Ù.

- font NAME-OF-FONT 
   
   ±×·¡ÇÈ Ã¢¾È¿¡ ÅؽºÆ®·Î »ç¿ë µÉ, ÆùÆ®ÀÇ À̸§

- excute A-PROGRAM-AS-A-SINGLE-STRING

  ÀÌ ¿É¼ÇÀ» °¡Áö°í ´ç½ÅÀº Áï½Ã ½ÇÇà µÇ±â À§ÇÑ ¾î¶² yabasic Äڵ带 Á¶°ÇÀ¸·Î ÁöÁ¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. 
  ÀÌ°ÍÀº ´ç½ÅÀÌ ÆÄÀÏ·Î ÀúÀåÇÏ±æ ¿øÄ¡ ¾Ê´Â °£´ÜÇÑ ÇÁ·Î±×·¥¿¡ À¯¿ëÇÕ´Ï´Ù. ¸¸¾à ÀÌ ¿É¼ÇÀÌ ÁÖ¾îÁø´Ù¸é,
  ´ç½ÅÀº ÇÑ ÆÄÀϷκÎÅÍ ¾î¶² Äڵ嵵 ÀÐÁö ¸øÇÒ °ÍÀÔ´Ï´Ù.; ¿¹¸¦ µé¾î yabasic - e 'for a=1 to 10:print  
  a*a:next a' ´Â Áï½Ã ´ç½Å¿¡°Ô 1¿¡¼­ 10±îÁö Æò¹æ¼öµéÀ» Ãâ·ÂÇÕ´Ï´Ù.

- bind NAME-OF-STANDALONE-PROGRAM

  yabasic ÇÁ·Î±×·¥À¸·ÎºÎÅÍ (NAME-OF-STANDALONE-PROGRAM¿¡ ÀÇÇØ ¸í½ÃµÈ À̸§À» °¡Áø) ´Ù½Ã ¸»Çϸé Ä¿¸Çµå
  ¶óÀÎ»ó¿¡ ¸í½ÃµÇ¾îÁø µ¶¸³Çü ÇÁ·Î±×·¥À» ¸¸µì´Ï´Ù. ¼¼ºÎ»çÇ×Àº 'µ¶¸³Çü ÇÁ·Î±×·¥ âÁ¶Çϱâ'¿¡ ´ëÇÑ 
  ¼½¼ÇÀ» º¸½Ê½Ã¿ä.

- infolevel INFOLEVEL 

  INFOLEVELÀÌ debug, note, warning, error ±×¸®°í fatalÀÇ Çϳª°¡ µÉ ¼ö ÀÖ´Â °÷ÀÎ , (default°¡ 
  °æ°íÇÏ°í ÀÖ´Â) yabasicÀÇ infolevelÀ» º¯È­½ÃŲ´Ù. ÀÌ ¿É¼ÇÀº yabasicÀÌ ¸¸µé¾î ³½ debugging 
  Á¤º¸ÀÇ ¾çÀ» º¯È­½Ãŵ´Ï´Ù. ±×·¯³ª Á¤»óÀûÀ¸·Î yabasicÀÇ ÀÛ°¡ (³ª!) ¸¸ÀÌ ÀÌ °ÍÀ» º¯È­½ÃÅ°±æ ¿øÇÕ´Ï´Ù.

- doc NAME-OF-A-PROGRAM

  ÁöÁ¤µÈ ÇÁ·Î±×·¥ÀÇ ³»ÀåµÈ ¹®¼­¸¦ Ãâ·ÂÇÕ´Ï´Ù. ÇÁ·Î±×·¥ÀÇ ³»ÀåµÈ ¹®¼­´Â Ưº°ÇÑ Å°¿öµå doc·Î ½ÃÀÛÇÏ
  ´Â ±× ÇÁ·Î±×·¥ ¾È ÂÊ¿¡ ¸ðµç Çؼ³·Î ±¸¼ºµÇ¾î ÀÖ½À´Ï´Ù. ÀÌ ¹®¼­´Â ¾î¶² yabasic ÇÁ·Î±×·¥ÀÇ ¼¼ºÎ 
  ¸Þ´º·ÎºÎÅÍ »óÀÀÇÏ´Â ÀÔ±¸¸¦ ¼±ÅÃÇÔÀ¸·Î½á º¸¿©Áú ¼ö ÀÖ½À´Ï´Ù.

- librarypath DIRECTORY-WITH-LIBRARIES

  (import ¸í·ÉÀ» °¡Áö°í) libraryµé ±× Áß¿¡ ã°í °¡Á®¿À°Ô ÇÒ, µð·ºÅ丮¸¦ º¯È­½Ãŵ´Ï´Ù. ¿ª½Ã 
  library¸¦ ãÀ» ¹æ¹ý¿¡ ´ëÇÑ ´õ ¸¹Àº Á¤º¸´Â ÀÌ ¿£Æ®¸®¸¦ º¸½Ê½Ã¿ä.
 

4.3. defaults ¼³Á¤Çϱâ


¸¸¾à ´ç½ÅÀÌ ÇÑ ¹ø¿¡ ¾î¶² ¿É¼ÇµéÀ» ¼³Á¤Çϱ⠿øÇÑ´Ù¸é X À©µµ¿ìÁî ¸®¼Ò½º ÆÄÀÏ·Î ¹èÄ¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº ´ë°Ô .X¸®¼Ò½º ȤÀº ´ç½ÅÀÇ home µð·ºÅ丮 ¾È¿¡ ¾î¶² ÆÄÀÏÀÏ°ÍÀÔ´Ï´Ù. (¼¼ºÎ»çÇ×Àº man x ¸¦ Ãĺ¸½Ê½Ã¿ä.)

¿©±â¿¡ ±× ÆÄÀϾȿ¡ ÀÖ°Ô µÉ Áöµµ ¸ð¸¦ »ùÇÃÀÔ´Ï´Ù.

yabasic*foreground: blue
yabasic*background: gold
yabasic*geometry: +10+10
yabasic*font: 9x15

ÀÌ°ÍÀº blue·Î foreground »ö±òÀ» gold·Î background »ö±òÀ» ¼³Á¤ÇÒ°ÍÀÔ´Ï´Ù. ±× âÀº 10,10 À§Ä¡¿¡ ³ªÅ¸³ª°Ô µÉ °ÍÀÌ¸ç ¹®ÀÚ ÆùÆ®´Â 9x15°¡ µÉ °ÍÀÔ´Ï´Ù.

5. ÁÖÁ¦¿¡ ÀÇÇØ ¼³¸íµÈ yabasicÀÇ ¸î °¡Áö Ư¡µé


ÀÌ ÀåÀº yabasicÀÇ Å« Ư¡µé Áß ¸î °¡Áö¸¦ À§ÇÑ ¼½¼ÇÀÌ¸ç °¢ ºÎºÐ°ú °ü·ÃµÈ ¼Ò¼öÀÇ ¸í·É¾îµé·Î À̸§ÀÌ Áö¾îÁ³½À´Ï´Ù. ±×·¡¼­ ´ç½ÅÀÇ °ü½É¿¡ µû¶ó À̸§ÀÌ ºÙÀº ºÎºÐÀÇ °¡Àå Áß¿äÇÑ ¸í·É¾îµéÀ» ã¾Æ º¼ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ºÎºÐÀ¸·ÎºÎÅÍ ´Ù¸¥ ¸í·É¾îµéÀº see also ¼½¼Ç¾È¿¡ ¸µÅ©¸¦ ÅëÇØ º¼ ¼ö ÀÖ½À´Ï´Ù.

5.1. print, input°ú ±×¿ÜÀÇ °Íµé


¸í·É¾î print´Â 'ÅؽºÆ® È­¸é»ó'¿¡ ÅؽºÆ®¸¦ ³õ´Âµ¥ »ç¿ëµË´Ï´Ù. ¿©±â, ´Ü¾î 'ÅؽºÆ® È­¸é'Àº (Unix »ó¿¡¼­´Â) Å͹̳ÎÀ» (Window »ó¿¡¼­´Â) ÄܼÖâÀ» »ó¡ÇÕ´Ï´Ù.

º»ÁúÀûÀ¸·Î, print´Â ´Ü¼øÈ÷ ÅؽºÆ® â¿¡ ±×°ÍÀÇ Àμö¸¦ »êÃâÇÕ´Ï´Ù. ±×·¯³ª, ÀÏ´Ü ´ç½ÅÀÌ clear screenÀ» È£ÃâÇß´Ù¸é getscreen$³ª putscreenÀ» °¡Áö°í »ö±òÀ» Ãâ·ÂÇϰųª ÅؽºÆ® ºÎºÐÀ» º¹»çÇÏ´Â °Í°ú °°Àº ¾Õ¼± Ư¡µéÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

´ç½ÅÀº ¸í·É¾î inputÀ» °¡Áø inputÀ» ±× ÀÌ¿ëÀÚ¿¡°Ô ¿äûÇصµ »ó°ü¾ø´Ù.; ±×°ÍÀÌ ´­·¯ÁöÀÚ ¸¶ÀÚ °¢ Å°¸¦ ¾ò±â À§ÇØ inkey$¸¦ »ç¿ëÇϼ¼¿ä

5.2. ÄÁÆ®·Ñ ±¸¹® ; loops, if ±×¸®°í switch


¹°·Ð, yabasicÀº goto- ¿Í gosub- ±¸¹®À» °¡Áö°í ÀÖ½À´Ï´Ù; ´ç½ÅÀº (´ÜÁö Ưº°ÇÑ ¶óº§ÀÇ Á¾·ùÀÎ) ¾î¶² ¶óº§ ȤÀº ÁÙ ¹øÈ£¿¡ °¥ ¼ö ÀÖ½À´Ï´Ù. (ÇØ·Ó´Ù°í °í·ÁµÈ goto) ÀÇ ³ª»Û ÆòÆÇ¿¡µµ ºÒ±¸ÇÏ°í goto´Â ¾ÆÁ÷µµ Àß »ç¿ëµË´Ï´Ù.; ±×·¯³ª ¸¹Àº °æ¿ì¿¡ ÀÖ¾î ´ç½ÅÀº ¾Æ¸¶µµ repeat-until, while-wend ȤÀº do-loop °°Àº loopµéÀ» »ç¿ëÇÏ´Â °æ¿ì°¡ ¸¹½À´Ï´Ù.; ´ç½ÅÀº break ±¸¹®À¸·Î ÀÌ loopµéÀÇ ¾î¶² °Íµµ ¶°³¯ ¼ö ÀÖÀ¸¸ç continue¸¦ °¡Áö°í Áï½Ã ´ÙÀ½ ¹Ýº¹À» ½ÃÀÛ Çصµ »ó°ü¾ø½À´Ï´Ù.

°áÁ¤Àº ª°Å³ª ±ä ÇüÅ µÑ ´Ù ¿Ã¼öÀÖ´Â if ±¸¹®À¸·Î ¸¸µé ¼ö ÀÖ½À´Ï´Ù. ªÀº ÇüÅ´ ¾î¶² Å°¿öµå thenµµ ¾øÀÌ ±× ¶óÀÎÀÇ ³¡À» È®Àå ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±ä ÇüÅ´ endif·Î È®ÀåÀ» Çϸç Å°¿öµå then (±ä ÇüŸ¦ ¼Ò°³ÇÏ´Â °ÍÀÎ) else ȤÀº elseif¸¦ »ç¿ëÇؼ­ È®ÀåÇصµ µË´Ï´Ù.

¸¸¾à ´ç½ÅÀÌ ¸¹Àº ´Ù¸¥ °ª¿¡ ´ëÇ×ÇÏ¿© ÇÑ Ç¥ÇöÀÇ °á°ú¸¦ ½ÃÇèÇÏ°í ½Í´Ù¸é, ´ç½ÅÀÇ switch ±¸¹®À» »ç¿ëÇؾßÇÕ´Ï´Ù.

5.3. Drawing °ú Painting


´ç½ÅÀº ¼±, ¿ø, Á÷»ç°¢Çü ȤÀº »ï°¢Çü Áß ¾î¶² °Íµµ ±×¸®±â Àü¿¡ open window¸¦ È£ÃâÇØ¾ß ÇÕ´Ï´Ù.; ÀÌ ±¸¹®µé ¸ðµÎ´Â ±ú²ýÇÏ°Ô Çϰųª ä¿öÁö´Â °ÍÀ¸·Î Àå½ÄµÇ¾îÁý´Ï´Ù. ¸¸¾à ´ç½ÅÀÌ drawingÀ» À§ÇØ »öÀ» ¹Ù²Ù±â ¿øÇÑ´Ù¸é, Colour¸¦ »ç¿ëÇϽʽÿä. ±×·¯³ª Çѹø¿¡ ÇϳªÀÇ Ã¢¸¸ÀÌ ¿­·ÁÁÖÀÖ´Ù´Â »ç½ÇÀ» ÁÖÀÇÇϽýʽÿä.

¸¸¾à ´ç½ÅÀÌ open printer ¸í·É¾î¸¦ »ç¿ëÇÑ´Ù¸é, ´ç½ÅÀÌ ±×·È´ø ¸ðµç °ÍÀÌ printer·Î º¸³»Áú¼öÀÖ½À´Ï´Ù.

¿òÁ÷ÀÌ´Â ±×·¡ÇÈÀÇ ¸î °¡Áö (¸Å¿ì) Á¦ÇÑµÈ ¹öÀüÀ» »ç¿ëÇÏ°íÀÚ ÇÑ´Ù¸é, yabasicÀº ¹®ÀÚ¿­ ¾ÈÂÊ¿¡¼­ ±×·¡ÇÈ Ã¢À¸·ÎºÎÅÍ Á÷»ç°¢ÇüÀÇ Áö¿ªÀ» °Ë»öÇϰųª ȤÀº °Å²Ù·Îµµ ¶È°°Àº ÀÛ¿ëÀ» ÇÏ´Â ¸í·É¾î getbit$ ³ª putbit¸¦ Á¦°øÇÕ´Ï´Ù.

¸¸¾à ´ç½ÅÀÌ ¸¶¿ì½º Ŭ¸¯¿¡ ¹ÝÀÀ ÇÏ´Â °ÍÀ» ¿øÇÑ´Ù¸é, ´ç½ÅÀº inkey$ ±â´ÉÀ» »ç¿ëÇصµ µË´Ï´Ù.

5.4. ÆÄÀÏ¿¡ ¾²±âºÎÅÍ Àбâ±îÁö


´ç½ÅÀÌ ÆÄÀÏÀ» Àаųª ¾²±â Àü¿¡ ÆÄÀÏÀ» ¿­¾î¾ß ÇÕ´Ï´Ù.; ÀÏ´Ü ´ç½ÅÀÌ ½ÇÇàÇÏ·Á°í ÇÑ´Ù¸é, ÆÄÀÏÀ» ´Ý¾Æ¾ß¸¸ ÇÕ´Ï´Ù. ¿­¸° ÆÄÀÏÀº °£´ÜÇÑ ¹øÈ£·Î ÁöĪµÇ¸ç ¸¸¾à ÆÄÀÏ¿¡ Á¢±ÙÇÏ±æ ¿øÇÑ´Ù¸é º¯¼ö ³»ºÎ¿¡ ÀúÀåµÇ¾úÀ»Áö ¸ð¸¦ ÆÄÀÏÀÌ °ø±ÞµÇ¾ß¸¸ ÇÕ´Ï´Ù. ÀÌ°ÍÀº Å°¿öµå (ÆÄÀϷκÎÅÍ Àбâ À§ÇÑ) input À̳ª (ÆÄÀÏ¿¡ ¾²±âÀ§ÇÑ) print °¢°¢ µÚ¿¡ ±× ÆÄÀÏÀÇ ¹øÈ£¿¡ µÚµû¶ó¿À´Â hash ('#')À» ÀÔ·ÂÇÔÀ¸·Î¼­ °£´ÜÈ÷ ½ÇÇàµË´Ï´Ù.

¸¸¾à ´ç½ÅÀÌ ´õ Á¦¾îÇÏ°í ½Í´Ù¸é, ´Ù ¸ñÀû ¸í·É¾î peek¿Í poke¸¦ »ç¿ëÇÔÀ¸·Î½á ÇÑ ¹ø¿¡ 1byte¸¦ ÀÐ°í ¾²´Â °ÍÀ» °í·ÁÇصµ µË´Ï´Ù.

5.5. ¼­ºê·çƾ°ú ¶óÀ̺귯¸®

¾î¶² yabasic ÇÁ·Î±×·¥À» ´õ Á¶±×¸Ä°Ô ¸¸µå´Â ÃÖ°íÀÇ ¹æ¹ýÀÌÀÚ, Á» ´õ °ü¸®Çϱ⠽¬¿î °ÍµéÀº ¼­ºê·çƾ°ú ¶óÀ̺귯¸®ÀÌ´Ù. ±×°ÍµéÀº ÇÁ·Î±×·¥À» ±¸ÃàÇϴµ¥ ÀÖ¾î yabasicÀÇ °¡Àå ¾Õ¼± ¼ö´ÜÀÌ´Ù.

¼­ºê·çƾÀº ÇÏÀ§ ¸í·É¾î¸¦ °¡Áö°í ¸¸µé¾îÁý´Ï´Ù. ¼­ºÎ·çƾÀº ÆĶó¹ÌÅ͸¦ ¹Þ¾Æ °ªÀ» µÇµ¹¸³´Ï´Ù. ¼­ºÎ·çƾÀº yabasicÀÇ ¸¹Àº ÇÔ¼ö¸¦ È£Ãâ ÇÒ ¼öÀÖ½À´Ï´Ù.; ±×·¯¹Ç·Î ±× ÀÚ½ÅÀ» ¾ð¾î·Î È®ÀåÇÏ´Â °ÍÀ» Çã¶ôÇÕ´Ï´Ù.

ÀÏ´Ü ´ç½ÅÀÌ °ü·ÃµÈ ¼­ºê·çƾÀÇ ¼¼Æ®¸¦ ¸¸µé¾ú´Ù¸é ´Ù¸¥ ÇÁ·Î±×·¥¾È¿¡¼­µµ À¯¿ëÇÒ ¼ö ÀÖ´Ù´Â »ç½ÇÀ» ´À³¥ °ÍÀ̸ç,¶óÀ̺귯¸®·Î ±×°ÍµéÀ» ¸ðÀ» ¼ö ÀÖ½À´Ï´Ù. ¶óÀ̺귯¸® °°Àº °ÍÀº Å°¿öµå import¸¦ »ç¿ëÇÔÀ¸·Î½á ºÐ»êµÈ ÆÄÀϾȿ¡ Æ÷ÇԵǸç, ´ç½ÅÀÇ ¾î¶² ÇÁ·Î±×·¥¿¡µµ Æ÷Ç﵃ ¼ö ÀÖ½À´Ï´Ù.

5.6. ¹®ÀÚ¿­ ó¸®

yabasicÀº ¹®ÀÚ¿­·ÎºÎÅÍ ºÎºÐµéÀ» »Ì¾Æ³»´Â Æò¹üÇÑ ÇÔ¼öµéÀ» °¡Áö°í ÀÖ½À´Ï´Ù.: left$, mid$ ±×¸®°í right$. ÁÖÀÇ, ÇÔ¼ö ¸ðµÎ´Â ¹®ÀÚ¿­ÀÇ ºÎºÐÀ» ¹Ù²Ü¼ö ÀÖµµ·Ï À§Ä¡¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

¸¸¾à ´ç½ÅÀÌ tokenÀ¸·Î¼­ ¹®ÀÚ¿­À» ºÐÇÒÇÏ±æ ¿øÇÑ´Ù¸é, token ȤÀº ºÐÇÒÇÏ´Â ÇÔ¼ö¸¦ »ç¿ëÇؾßÇÕ´Ï´Ù.

±× ¿Ü ¿©·¯°¡Áö (»óÀ§°æ¿ì·Î º¯È¯ÇÏ´Â) upper$, (´Ù¸¥ ¹®ÀÚ¿­ ³»ºÎ¿¡ ¾î¶² ¹®ÀÚ¿­À» ã´Â) instr$, (¹®ÀÚ¸¦ ¾Æ½ºÅ°ÄÚµå·Î º¯È¯ÇÏ´Â) chr$, (ÆÐÅÏ¿¡ ´ëÁ¶ÇÏ¿© ¹®ÀÚ¿­À» ½ÃÇèÇÏ´Â) glob °°Àº ´Ù¸¥ ¹®ÀÚ¿­ ó¸® ÇÔ¼öµéÀÌ ¸¹ÀÌ ÀÖ½À´Ï´Ù. ±×³É ¸µÅ©¸¦ µû¶ó°¡º¸½Ê½Ã¿ä.

5.7. °è»ê

yabasicÀº ¼ýÀÚ¿Í °è»êÀ» ´Ù·ì´Ï´Ù.: ´ç½ÅÀº sin À̳ª atan °°Àº »ï°¢ÇÔ¼ö³ª (log¸¦ »ç¿ëÇÏ´Â) log¼öÇÐ °è»ê ÇÒ ¼öÀÖ½À´Ï´Ù. and or or °°Àº ºñÆ® ´ÜÀ§ÀÇ ¿¬»êÀº (ÀμöÀÇ ÃÖ¼Ò°ª ȤÀº ÃÖ´ë°ªÀ» °è»ê) ÃÖ¼Ò È¤Àº ÃÖ´ë ȤÀº °è¼ö ȤÀº (³ª´°¼À ȤÀº Á¤¼ö ºÎºÐ ȤÀº ÃѼöÀÇ ¸®¸¶Àδõ) int ¿¡ ´õÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

5.8. µ¥ÀÌÅÍ

´ç½ÅÀº data ±¸¹®À» °¡Áø ´ç½ÅÀÇ ÇÁ·Î±×·¥¾È¿¡ µ¥ÀÌÅ͸¦ ÀúÀå ÇÒ ¼ö ÀÖ½À´Ï´Ù.; ½ÇÇà µ¿¾È ´ç½ÅÀº ¾Æ¸¶µµ ±â¾ï¼Ó¿¡¼­ Èñ¹ÌÇØÁö±â Àü¿¡ ÀúÀåÇؾ߸¸ Çß´ø µ¥ÀÌÅ͸¦ ¹è¿­µÇ¾îÁøä·Î Àб⸦ ¿øÇÒ °ÍÀÔ´Ï´Ù.

5.9. ´Ù¸¥ Èï¹Ì·Î¿î ¸í·É¾îµé

yabasic ÇÁ·Î±×·¥Àº system°ú system$¸¦ °¡Áö°í ´Ù¸¥ ÇÁ·Î±×·¥À» ½ÃÀÛ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

peek¿Í poke´Â ³»ºÎ Á¤º¸¸¦ ¾ò°í ¼³Á¤Çϵµ·Ï ÇÕ´Ï´Ù; (À¯´Ð½º ȤÀº À©µµ¿ìÁî) ¿î¿µ üÁ¦ µÑ´Ù

ÇöÀç ½Ã°¢À̳ª ³¯Â¥´Â (¸îÀÎÁö ÃßÃøÇÕ´Ï´Ù !) time$¿Í date$¸¦ °¡Áö°í °Ë»öÇÒ ¼ö ÀÖ½À´Ï´Ù.

6. ÁÖÁ¦¿¡ ÀÇÇØ ¸ñ·ÏÈ­µÈ ¸ðµç ¸í·É¾î¿Í ÇÔ¼öµé

6.1. ¼ýÀÚ Ã³¸®¿Í º¯È¯

6.1.1. abs ()

ÀμöÀÇ ¿Ïº®ÇÑ °ªÀ» ±¸ÇÕ´Ï´Ù.

6.1.2. acos ()

ÀμöÀÇ ¾ÆÄ¿½º cosÀ» ±¸ÇÕ´Ï´Ù.

6.1.3. and()

ºñÆ®´ÜÀ§ÀÇ °è»ê and

6.1.4. asin()

ÀμöÀÇ ¾ÆÄ¿½º sinÀ» ±¸ÇÕ´Ï´Ù.

6.1.5. atan()

ÀμöÀÇ ¾ÆÅ© tan¸¦ ±¸ÇÕ´Ï´Ù.

6.1.6. bin$()

2Áø¼ö·Î ¼ýÀÚ¸¦ º¯È¯ÇÕ´Ï´Ù.

6.1.7. cos()

ÀμöÀÇ cosÀ» ±¸ÇÕ´Ï´Ù.

6.1.8. dec()

2Áø¼ö³ª 16Áø¼ö¸¦ ½ÊÁø¹ýÀ¸·Î º¯È¯ÇÕ´Ï´Ù.

6.1.9. eor()

µÎ ÀμöµéÀ» ºñÆ® ´ÜÀ§·Î ´õÇÕ´Ï´Ù.

6.1.10. euler

»ó¼ö 2.71828182864ÀÇ ¶Ç ´Ù¸¥ À̸§

6.1.11. exp()

ÀμöÀÇ Áö¼ö ÇÔ¼ö¸¦ °è»êÇÕ´Ï´Ù.

6.1.12. frac()

½Ç¼öÀÇ ¼Ò¼ö ºÎºÐÀ» µ¹·ÁÁÝ´Ï´Ù.

6.1.13. int()

Á¤¼ö ºÎºÐÀ» µ¹·ÁÁÝ´Ï´Ù.

6.1.14. log()

ÀÚ¿¬·Î±×¸¦ °è»êÇÕ´Ï´Ù.

6.1.15. max()

µÎ Àμöµé Áß¿¡ ´õ Å« Àμö·ê µ¹·ÁÁÝ´Ï´Ù.

6.1.16. min()

µÎ Àμöµé Áß¿¡ ´õ ÀÛÀº Àμö¸¦ µ¹·ÁÁÝ´Ï´Ù.

6.1.17. mod()

³ª´°¼ÀÀÇ ³ª¸ÓÁö¸¦ °è»êÇÕ´Ï´Ù.

6.1.18. or()

»ê¼öÀÇ orÀÌ¸ç ºñÆ® ¿¬»êÀ» À§ÇØ »ç¿ëÇÕ´Ï´Ù.

6.1.19. pi

°ª 3.14150¸¦ °®´Â »ó¼ö

6.1.20. ran()

³­¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

6.1.21. sig()

ÀμöÀÇ ºÎÈ£¸¦ µ¹·ÁÁÝ´Ï´Ù.

6.1.22. sin()

ÀμöÀÇ sinÀ» µ¹·ÁÁÝ´Ï´Ù.

6.1.23. sqr()

ÀμöÀÇ Á¦°öÀ» °è»êÇÕ´Ï´Ù.

6.1.24. sqrt()

ÀμöÀÇ Á¦°ö±ÙÀ» °è»êÇÕ´Ï´Ù.

6.1.25. tan()

ÀμöÀÇ tan¸¦ µ¹·ÁÁÝ´Ï´Ù.

6.1.26. xor()

ºñÆ®´ÜÀ§·Î ´õÇÕ´Ï´Ù.

6.1.27. **or^

°ÅµìÁ¦°öÀ» ÇÕ´Ï´Ù.

6.2. Á¶°Ç°ú Á¶Àý ±¸¹®

6.2.1. and

³í¸®ÀûÀÎ and À̸ç Á¶°Ç ¾È¿¡¼­ »ç¿ëµË´Ï´Ù.

6.2.2. break

switch ±¸¹®À̳ª loop¸¦ Å»ÃâÇÕ´Ï´Ù.

6.2.3. case

siwtch ±¸¹®¾È¿¡¼­ ¼­·Î ´Ù¸¥ case·Î ±¸ºÐÇÕ´Ï´Ù.

6.2.4. continue

for,do,repeat ȤÀº while-loopÀÇ ´ÙÀ½ ¹Ýº¹À» ½ÃÀÛÇÕ´Ï´Ù.

6.2.5. default

switch ±¸¹®¾È¿¡¼­ default °¡Áö·Î ±¸ºÐÇÕ´Ï´Ù.

6.2.6. do

(Á¶°Ç¾ø´Â) do-loop¸¦ ½ÃÀÛÇÕ´Ï´Ù.

6.2.7. else

if ±¸¹®¾È¿¡ ¾çÀÚÅÃÀÏÀ» ±¸ºÐÁþ½À´Ï´Ù.

6.2.8. elsif

if ±¸¹®¾È¿¡ ´ë¾ÈÁ¶°ÇÀ» ½ÃÀÛÇÕ´Ï´Ù.

6.2.9. false

0ÀÇ °ªÀ» °¡Áö´Â »ó¼ö

6.2.10. fi

end-if¸¦ À§ÇÑ ¶Ç ´Ù¸¥ À̸§

6.2.11. for

for ·çÇÁ¸¦ ½ÃÀÛÇÕ´Ï´Ù.

6.2.12. gosub

´ç½ÅÀÇ ÇÁ·Î±×·¥ ¾ÈÀÇ ¾î¶² Á¡¿¡¼­ ½ÇÇàÀ» ½ÃÀÛÇÕ´Ï´Ù. (±×¸®°í ÈÄ¿¡ µÇµ¹¾Æ¿É´Ï´Ù.)

6.2.13. goto

´ç½ÅÀÇ ÇÁ·Î±×·¥ ¾ÈÀÇ ¾î¶² Á¡¿¡¼­ ½ÇÇàÀ» ½ÃÀÛÇÕ´Ï´Ù. (±×¸®°í °áÄÚ µ¹¾Æ¿ÀÁö ¾Ê½À´Ï´Ù.)

6.2.14. if

Á¶°ÇÀ» Æò°¡ÇÏ¿© ±¸¹®À» ½ÇÇà½ÃÅ°¸ç ±×·¸Áö ¾ÊÀ¸¸é °á°ú¿¡ ÀÇÁ¸ÇÕ´Ï´Ù.

6.2.15. label

´ç½ÅÀÇ ÇÁ·Î±×·¥ ¾È¿¡ goto,gosub ȤÀº restore¸¦ À§ÇÑ Æ¯Á¤ÇÑ À§Ä¡¸¦ ¸í½ÃÇÕ´Ï´Ù.

6.2.16. loop

infinite loopÀÇ ³¡À» ¸í½ÃÇÕ´Ï´Ù.

6.2.17. next

for loopÀÇ ³¡À» ¸í½ÃÇÕ´Ï´Ù.

6.2.18. not

Ç¥ÇöÀ» ºÎÁ¤ÇÕ´Ï´Ù ; ! ·Î½á ¾µ ¼ö ÀÖ½À´Ï´Ù.

6.2.19. on gosub

´Ù¼öÀÇ gosub ´ë»óµé Áß Çϳª¿¡ °Ç³Ê¶Ü´Ï´Ù.

6.2.20. on goto

¸¹Àº goto ´ë»óµé Áß Çϳª¿¡ °Ç³Ê¶Ü´Ï´Ù.

6.2.21. on interrupt

Å°º¸µå ÀÎÅÍ·´Æ® »ó¿¡¼­ ¹ÝÀÀÀ» º¯È­½Ãŵ´Ï´Ù.

6.2.22. logical or

Á¶°Ç¾È¿¡¼­ »ç¿ëµË´Ï´Ù.

6.2.23. pause

ÁöÁ¤µÈ ½Ã°£µ¿¾È ¸ØÃ߰ųª ÀáÀáÈ÷ Àְųª ±â´Ù¸³´Ï´Ù.

6.2.24. repeat

repeat ·çÇÁ¸¦ ½ÃÀÛÇÕ´Ï´Ù.

6.2.25. return

subroutineÀ̳ª gosub·ÎºÎÅÍ µÇµ¹¾Æ¿É´Ï´Ù.

6.2.26. sleep

ÁöÁ¤µÈ ½Ã°£µ¿¾È ¸ØÃ߰ųª ÀáÀáÈ÷ Àְųª ±â´Ù¸³´Ï´Ù.

6.2.27. switch

°ª¿¡ ÀÇÁ¸ÇÏ´Â ¸¹Àº ¾çÀÚÅÃÀϵé Áß Çϳª¸¦ ¼±ÅÃÇÕ´Ï´Ù.

6.2.28. then

if ±¸¹®ÀÇ ÂªÀº ÇüŸ¦ ±ä ÇüÅ·Π¾Ë·ÁÁÝ´Ï´Ù.

6.2.29. true

1ÀÇ °ªÀ» °®´Â »ó¼ö

6.2.30. until

repeat ·çÇÁ¸¦ ³¡¸¶Ä¨´Ï´Ù.

6.2.31. wait

ÁöÁ¤µÈ ½Ã°£µ¿¾È ¸ØÃ߰ųª ÀáÀáÈ÷ Àְųª ±â´Ù¸³´Ï´Ù.

6.2.32. wend

while ·çÇÁ¸¦ ³¡¸¶Ä¨´Ï´Ù.

6.2.33. while

while ·çÇÁ¸¦ ½ÃÀÛÇÕ´Ï´Ù.

6.2.34. .

°¢°¢À¸·ÎºÎÅÍ ¸í·ÉÀ» ±¸ºÐÇÕ´Ï´Ù.

6.3. ÀÚ·á °ü¸®¿Í ó¸®

6.3.1. arraydim()

array reference·Î¼­ Åë°úµÈ arrayÀÇ Ä¡¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

6.3.2. arraysize()

array Ä¡¼öÀÇ Å©±â¸¦ µ¹·ÁÁÝ´Ï´Ù.

6.3.3. data

data ¾ÆÀÌÅÛÀÇ ¸ñ·ÏÀ» ¼Ò°³ÇÕ´Ï´Ù.

6.3.4. dim

dimÀÇ Ã¹¹ø° »ç¿ëÀü¿¡ array¸¦ ¸¸µì´Ï´Ù.

6.3.5. read

data ±¸¹®À¸·ÎºÎÅÍ data¸¦ ÀнÀ´Ï´Ù.

6.3.6. redim

redimÀÇ Ã¹¹ø° »ç¿ëÀü¿¡ array¸¦ ¸¸µì´Ï´Ù. dimÀÇ º°Äª

6.3.7. restore

data-pointerÀÇ Àå¼Ò¸¦ ¹Ù²ß´Ï´Ù.

6.4. ¹®ÀÚ¿­ ó¸®

6.4.1. asc()

¹®ÀÚ¿­À» ¹Þ¾Æµé¿© ascill charset ù¹ø° ¹®ÀÚÀÇ À§Ä¡·Î µ¹·ÁÁÝ´Ï´Ù.

6.4.2. chr$()

¼ýÀÚ¸¦ ¹Þ¾Æµé¿© ascill charset¾È¿¡ ÀÌ À§Ä¡¿¡¼­ ¹®ÀÚ·Î µ¹·ÁÁÝ´Ï´Ù.

6.4.3. glob()

¹®ÀÚ¿­ÀÌ simple pattern°ú °É¸Â´ÂÁö¸¦ È®ÀÎÇÕ´Ï´Ù.

6.4.4. hex$()

¼ýÀÚ¸¦ 16Áø¹ýÀ¸·Î ¹Ù²ß´Ï´Ù.

6.4.5. instr()

óÀ½°Í ¾È¿¡ ±×°ÍÀÇ µÎ¹ø° argument¸¦ ã½À´Ï´Ù; ¸¸¾à ã¾Ò´Ù¸é ±×°ÍÀÇ À§Ä¡·Î µ¹·ÁÁÝ´Ï´Ù.

6.4.6. left$()

¹®ÀÚ¿­ÀÇ ¿ÞÂʳ¡À» µ¹·ÁÁÝ´Ï´Ù (ȤÀº º¯È­½Ãŵ´Ï´Ù)

6.4.7. len()

¹®ÀÚ¿­ÀÇ ±æÀ̸¦ µ¹·ÁÁÝ´Ï´Ù.

6.4.8. lower$()

¹®ÀÚ¿­À» lower case·Î ¹Ù²ß´Ï´Ù.

6.4.9. ltrim$()

¹®ÀÚ¿­ÀÇ ¿ÞÂʳ¡¿¡ °ø°£À» ¾ø¾Û´Ï´Ù.

6.4.10. mid$()

¹®ÀÚ¿­¾È¿¡¼­ºÎÅÍ ¹®ÀÚµéÀ» µ¹·ÁÁÝ´Ï´Ù (ȤÀº º¯È­½Ãŵ´Ï´Ù)

6.4.11. right$()

¹®ÀÚ¿­ÀÇ ¿À¸¥Âʳ¡À» µ¹·ÁÁÝ´Ï´Ù (ȤÀº º¯È­½Ãŵ´Ï´Ù)

6.4.12. split()

ÇÑ ¹®ÀÚ¿­À» ¸¹Àº ¹®ÀÚ¿­·Î ÂÉ°¸´Ï´Ù.

6.4.13. str$()

¼ýÀÚ¸¦ ¹®ÀÚ¿­·Î ¹Ù²ß´Ï´Ù.

6.4.14. token()

ÇÑ ¹®ÀÚ¿­À» ´Ù¾çÇÑ ¹®ÀÚ¿­·Î ÂÉ°¸´Ï´Ù.

6.4.15. trim$()

±×°ÍÀÇ argument·ÎºÎÅÍ leading ±×¸®°í trailing space¸¦ Á¦°ÅÇÕ´Ï´Ù.

6.4.16. upper$()

ÇÑ ¹®ÀÚ¿­¿¡¼­ upper case·Î ¹Ù²ß´Ï´Ù.

6.4.17. val()

ÇÑ ¹®ÀÚ¿­À» ¼ýÀÚ·Î ¹Ù²ß´Ï´Ù.

6.5. ÆÄÀÏ ¿î¿µ°ú Ãâ·ÂÇϱâ

6.5.1. at()

ƯÁ¤ÇÑ À§Ä¡¿¡¼­ Ãâ·ÂÀÌ À§Ä¡ÇÏ°Ô print ¸í·É¾î¾È¿¡¼­ »ç¿ëµÉ ¼ö ÀÖ½À´Ï´Ù.

6.5.2. beep

´ç½ÅÀÇ ÄÄÇ»ÅÍ ¾È¿¡¼­ º§À» ¿ï¸®°ÔÇÕ´Ï´Ù; bell°ú À¯ÀǾî

6.5.3. bell

´ç½ÅÀÇ ÄÄÇ»ÅÍ ¾È¿¡¼­ º§À» ¿ï¸®°ÔÇÕ´Ï´Ù; (beep ó·³)

6.5.4. clear screen

text window¸¦ Áö¿ó´Ï´Ù.

6.5.5. close

Àü¿¡ ¿­·ÁÀÖ´ø ÆÄÀÏÀ» ´Ý½À´Ï´Ù.

6.5.6. close printer

±×·¡ÇÈÀÇ Ãâ·ÂÀ» ¸ØÃä´Ï´Ù.

6.5.7. print color

»ö±òÀ» °¡Áö°í Ãâ·ÂÇÕ´Ï´Ù.

6.5.8. print colour

print color¸¦ º¸½Ê½Ã¿ä.

6.5.9. eof

¿­¸° ÆÄÀÏÀÌ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇߴ°¡¸¦ È®ÀÎÇÕ´Ï´Ù.

6.5.10. getscreen$()

ÅؽºÆ® Å͹̳ÎÀÇ Á÷°¢ÀǺκÐÀ» ¹¦»çÇÏ´Â ¹®ÀÚ¿­·Î µ¹·ÁÁÝ´Ï´Ù.

6.5.11. inkey$

ÇÑ Å°°¡ ´­·¯Áú¶§±îÁö ±â´Ù¸³´Ï´Ù.

6.5.12. input

»ç¿ëÀÚ (ȤÀº ÆÄÀϷκÎÅÍ) ÀÔ·ÂÀ» ÀÐ°í ±×°ÍÀ» ÇÔ¼ö·Î ÇÒ´çÇÕ´Ï´Ù.

6.5.13. line input

ÅؽºÆ®ÀÇ Àüü ¶óÀÎÀ» ÀÐ°í ±×°ÍÀ» ÇÔ¼ö·Î ÇÒ´çÇÕ´Ï´Ù.

6.5.14. open

ÆÄÀÏÀ» ¿±´Ï´Ù.

6.5.15. open printer

printing graphics·Î printer¸¦ ¿±´Ï´Ù.

6.5.16. print

Å͹̳ΠȤÀº ÆÄÀÏ¿¡ ¾¹´Ï´Ù.

6.5.17. putscreen

¹®ÀÚÀÇ Á÷»ç°¢ÇüÀ» ÅؽºÆ® Å͹̳ηΠ²ø¾î³À´Ï´Ù.

6.5.18. reverse

reverse¸¦ Ãâ·ÂÇÕ´Ï´Ù (¹è°æ°ú Àü°æ»ö±òÀÌ ¹Ù²ï´Ù.)
6.5.18.1. screen
clear screenÀ¸·Î¼­ text window¸¦ Áö¿ó´Ï´Ù.

6.5.19. seek()

¿­¸° ÆÄÀϾȿ¡ ƯÁ¤À§Ä¡¸¦ º¯È­½Ãŵ´Ï´Ù.

6.5.20. tell

¿­¸° ÆÄÀϾȿ¡ ÇöÀçÀ§Ä¡¸¦ ¾Ë·ÁÁÝ´Ï´Ù.

6.5.21. using

ÇÑ ¼ýÀÚ¸¦ Ãâ·ÂÇϱâ À§Ã¤ ƯÁ¤ Æ÷¸äÀ» ÁöÁ¤ÇÕ´Ï´Ù.

6.5.22. '#'

ÆÄÀÏ ¹øÁö¸¦ À§ÇÑ comment³ª marker

6.5.23. @

at¿¡ µ¿ÀǾî

6.5.24. ;

print ±¸¹®ÈÄ¿¡ ¸Í¸ñÀûÀÎ newlineÀ» ¸·½À´Ï´Ù.

6.6. ¼­ºê·çƾ°ú ¶óÀ̺귯¸®

6.6.1. end sub

¼­ºê·çƾ Á¤ÀǸ¦ ³¡³½´Ù

6.6.2. export

ÀüüÀûÀ¸·Î º¼¼öÀÖµµ·Ï ÇÔ¼ö¸¦ Ç¥½Ã

6.6.3. import

¶óÀ̺귯¸®¸¦ µé¿©¿É´Ï´Ù

6.6.4. local

¼­ºê·çƾ¿¡ Àå¼Ò·Î¼­ º¯¼ö¸¦ Ç¥½Ã

6.6.5. numparams

¼­ºê·çƾ¿¡ Åë°úµÇ¾ú´ø ÆĶó¹ÌÅÍÀÇ ¼ö¸¦ ȸº¹ÇÕ´Ï´Ù

6.6.6. return

¼­ºê·çƾ ȤÀº gosub·Î ºÎÅÍ È¸º¹ÇÕ´Ï´Ù

6.6.7. static

calls¿¡¼­ ¼­ºê·çƾ»çÀÌ º¯¼öÀÇ °ªÀ» º¸Á¸ÇÕ´Ï´Ù

6.6.8. step

for-loop¾È¿¡ Áõ°¡ °£°ÝÀ» Á¶°ÇÀ¸·Î¼­ ÁöÁ¤ÇÕ´Ï´Ù

6.6.9. sub

±ÔÁ¤µÈ ¼­ºê·çƾÀ» »ç¿ëÀÚ¿¡°Ô ¼±¾ðÇÕ´Ï´Ù

6.7. ´Ù¸¥ ¸í·É¾îµé

6.7.1. bind()

Ȧ·Î ÀÛµ¿ÇÏ´Â ÇÁ·Î±×·¥À¸·Î yabasic ÇÁ·Î±×·¥°ú yabasic ÀÎÅÍÇÁ¸®ÅÍ µÑ´Ù¸¦ ¹­½À´Ï´Ù

6.7.2. compile

ÇöóÀÌ(the fly)»ó¿¡ yabasic Äڵ带 °¡Áø ¹®ÀÚ¿­À» ÄÄÆÄÀÏÇÕ´Ï´Ù

6.7.3. date$

ÇöÀç dateÀÇ ´Ù¾çÇÑ ¿ä¼Ò¸¦ °¡Áø ¹®ÀÚ¿­À» ¸®ÅÏÇÕ´Ï´Ù

6.7.4. doc

ÇÁ·Î±×·¥ ±×Àڽſ¡ÀÇÇØ È¸¼öµÉÁö ¸ð¸£´Â, Ưº°ÇÑ ÁÖ¼®

6.7.5. docu$

ÇÁ·Î±×·¥ ¾È¿¡ ¸ðµç docu-±¸¹®ÀÇ ÄÜÅÙÃ÷¸¦ Æ÷ÇÔÇÏ´Â, Ưº°ÇÑ array

6.7.6. error

¿¡·¯¸¦ ÀÏÀ¸Å°°í ´ç½ÅÀÇ ÇÁ·Î±×·¥À» Á¾·áÇÕ´Ï´Ù

6.7.7. execute$()

¹®ÀÚ¿­À» ¸®ÅÏÇؾ߸¸ÇÏ´Â, ƯÁ¤Áö¾îÁø ¼­ºê·çƾÀ» »ç¿ëÀÚ°¡ ½ÇÇàÇϵµ·ÏÇÕ´Ï´Ù

6.7.8. execute()

¼ýÀÚ¸¦ ¸®ÅÏÇؾ߸¸ÇÏ´Â, ƯÁ¤Áö¾îÁø ¼­ºê·çƾÀ» »ç¿ëÀÚ°¡ ½ÇÇàÇϵµ·ÏÇÕ´Ï´Ù

6.7.9. exit

´ç½ÅÀÇ ÇÁ·Î±×·¥À» Á¾°á½Ãŵ´Ï´Ù

6.7.10. pause

pause ÇÏ°í sleep ÇÏ¸ç ¸í½ÃµÈ ¼öÃʵ¿¾È ±â´Ù¸³´Ï´Ù

6.7.11. peek

´Ù¾çÇÑ ³»ºÎÀÇ Á¤º¸¸¦ ȸº¹ÇÕ´Ï´Ù

6.7.12. peek$

´Ù¾çÇÑ ³»ºÎÀÇ ¹®ÀÚ¿­-Á¤º¸¸¦ ȸº¹ÇÕ´Ï´Ù

6.7.13. poke

yabasicÀÇ ¼±ÅÃµÈ ³»ºÎ¸¦ ¹Ù²ß´Ï´Ù

6.7.14. rem

ÁÖ¼®À» ½ÃÀÛÇÕ´Ï´Ù

6.7.15. sleep

pauseÇÏ°í sleepÇÏ¸ç ¸í½ÃµÈ ¼öÃʵ¿¾È ±â´Ù¸³´Ï´Ù

6.7.16. system$()

´ç½ÅÀÇ ¿î¿µÃ¼Á¦¿¡ ¸í·É¹®À» ³Ñ±â°í ±×°ÍÀÇ Ãâ·ÂÀ» ¸®ÅÏÇÕ´Ï´Ù

6.7.17. system()

´ç½ÅÀÇ ¿î¿µÃ¼Á¦¿¡ ¸í·É¹®À» ³Ñ±â°í ±×°ÍÀÇ ¿¢½ÃÆ®ÄÚµå(exitcode)¸¦ ¸®ÅÏÇÕ´Ï´Ù

6.7.18. time$

ÇöÀç ½Ã°£À» Æ÷ÇÔÇÏ´Â ¹®ÀÚ¿­À» ¸®ÅÏÇÕ´Ï´Ù

6.7.19. to

ÀÌ Å°¿öµå°¡ ´Ù¸¥ ¸í·É¹®ÀÇ ºÎºÐÀ¸·Î¼­ ³ªÅ¸³³´Ï´Ù

6.7.20. wait

pauseÇÏ°í sleepÇÏ¸ç ¸í½ÃµÈ ¼öÃʵ¿¾È ±â´Ù¸³´Ï´Ù

6.7.21. //

ÁÖ¼®À» ½ÃÀÛÇÕ´Ï´Ù

6.7.22. :

°¢ ´Ù¸¥°ÍÀ¸·Î ºÎÅÍ ¸í·ÉÀ» ºÐ¸®ÇÕ´Ï´Ù

6.8. ±×·¡ÇÈ°ú Ãâ·Â

6.8.1. backcolor

specify the colour for subsequent drawing of the background box draw a rectangle. A synonym for rectangle circle draws a circle in the graphic-window clear Erase circles, rectangles or triangless clear window clear the graphic window and begin a new page, if printing is under way close curve close a curve, that has been drawn by the line-command close window close the graphics-window colour specify the colour for subsequent drawing dot draw a dot in the graphic-window fill draw a filled circles, rectangles or triangles getbit$() return a string representing the bit pattern of a rectangle within the graphic window line draw a line mouseb extract the state of the mousebuttons from a string returned by inkey$ mousemod return the state of the modifier keys during a mouseclick mousex return the x-position of a mouseclick mousey return the y-position of a mouseclick new curve start a new curve, that will be drawn with the line-command open window open a graphic window putbit draw a rectangle of pixels into the graphic window rectangle draw a rectangle triangle draw a triangle text write text into your graphic-window window origin move the origin of a window

==°è¼Ó ¹ø¿ªÇÒ ¿¹Á¤ÀÔ´Ï´Ù.==

7. ´ëÈ­

No messages

8. FAQ

Q A
Áú¹®1´äº¯1
Áú¹®2´äº¯2
Áú¹®3´äº¯3

9. yabasic¿¡ °üÇÑ ±ÇÇÑ



9. yabasic¿¡ °üÇÑ ±ÇÇÑ

yabasicÀÇ º¹Á¦´Â YabasicÀÌ ¹è±ÞÇÑ ¼öÁ¤±ÇÇÑ(Artistic License [http]http://www.olis.or.kr/ossw/license/license/detail.do?lid=1017) ¶Ç´Â GNU ÀϹݰøµ¿¶óÀ̼¾½º(GPL, General Public License)ÀÇ ³»¿ëÀ» µû¸£´Â °æ¿ì¿¡ °¡´ÉÇÕ´Ï´Ù.

¼öÁ¤±ÇÇÑ? GNU? ¹«½¼ ¸»ÀÎÁö Á¶±Ý ¾î·Æ´Ù°í ¸»ÇϽô °Í °°Àºµ¥...¸ÂÁÒ? À½, »ç½Ç µÎ ±ÇÇÑ¿¡ ´ëÇؼ­´Â Àúµµ ÀÐ°í ½ÍÁö ¾Ê¾Æ¼­, ¿©·¯ºÐ²²¼­ ½º½º·Î Àо½Ã¸é ÁÁ°Ú½À´Ï´Ù. (¿ôÀ½) ¿©·¯ºÐ²²¼­´Â '¼öÁ¤±ÇÇÑ'À» µû¸£´Â°Ô yabasicÀ» »ç¿ëÇϴµ¥ ´õ À¶Å뼺À» µå¸± Å×´Ï, ÀüÀÚ¸¦ ¼±ÅÃÇϽʽÿÀ. Âü°í·Î GPLÀº ¸¹Àº ¼ÒÇÁÆ®¿þ¾îµéÀÌ ¹èÆ÷µÉ ¶§ Á¤ÇÏ°í ÀÖ´Â Á» ´õ ³Î¸® ¾Ë·ÁÁø ±Ô¾àÀÔ´Ï´Ù.


'¼öÁ¤±ÇÇÑ'À» µû¸£´Â Á¶°Ç ¾Æ·¡, ¾Æ·¡¿Í °°Àº ÇàÀ§°¡ °¡´ÉÇÕ´Ï´Ù.


• yabasicÀ» »ç¿ëÀÚÀÇ È¨ÆäÀÌÁö ´ã°Å³ª ȤÀº CD¿¡ ´ã¾Æ yabasicÀ» °ø±ÞÇÏ¸ç ºñ¿ëÀ» û±¸ÇÏ´Â °æ¿ì

• »ç¿ëÀÚ ½º½º·Î ÀÛ¼ºÇÑ yabasic »ç¿ë ÇÁ·Î±×·¥µé ¹× yabsicÀ» ÇÔ²² ¹­¾î ÆǸÅÇÏ´Â °æ¿ì

• yabasicÀ» ¼öÁ¤Çϰųª ±× ÀϺθ¦ ÷°¡, »èÁ¦ÇÏ¿© ±× ¼öÁ¤º»À» ÆǸÅÇÏ´Â °æ¿ì


10. °Ô½ÃÆÇ


ID
Password
Join
You will be imprisoned for contributing your time and skill to a bank robbery.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-12-12 17:13:15
Processing time 0.0252 sec