linux쵀lex&yacc
×î½ü¸ÕѧLEX&YACC
ÓиöÎÊÌâÎÊÎÒÒ»Ö±¶¼Ïë²»Ã÷°×
ÔÚдºÃÁË.lºÍ.yÎļþºó
ÔÚLinuxÏÂlex a.l
yacc b.y
¾Í»áÉú³É¶ÔÓ¦µÄlex.yy.c y.tab.c y.tab.hÎļþ
µ«ÊÇ¿´ÍøÉÏ»¹ÓÐ×ÊÁÏ˵lex&yaccµÄGNU°æ±¾·Ö±ðÊÇflex&Bison
Ò²ÓÐÈË˵ÔÚUnixÏÂÊÇlex£¬LinuxÏÂÊÇflex
µ½µ×ÕâЩ°æ±¾ÊÇÔõô½ç¶¨µÄ£¿
ÔÚLinuxÏÂʹÓÃlexÓëflexÕâÁ½¸öÃüÁîÊÇÒ»»ØÊÂô£¿»¹ÊÇÁ½»ØÊ£¿
º¹¡£¡£¡£½øÀ´Ò»¿´Â¥Ö÷µÄÃû×Ö¡£¡£¡£
ÍêÈ«²»¶®£¬°ï¶¥
lzÔÚѧ±àÒëÔÀíÂð£¿
ÒÔÇ°×ö¸öÕâ¸ö¿ÎÉ裬ÔçÍüÁË
ʵ¼ÊÊÔϾÍÖªµÀÁË£¬¾À½áÃû×ÖÍêȫûÓбØÒª
LinuxÏÂȷʵÊǽÐflex&Bison
lex -V
ºÍflex -VµÄ½á¹ûÊÇÒ»ÑùµÄ
Ãû×Ö²»ÖØÒª£¬¹¦Äܶ¼Ò»Ñù
µÄÈ·£¬linuxʹÓõÄÆäʵ¾ÍÊÇflex, lexÖ»ÊÇÒ»¸öÖ¸ÏòflexµÄÁ´½Ó
[root@bat ~]# ls -l /usr/bin/lex
lrwxrwxrwx 1 root root 4 2008-02-05 00:21 /usr/bin/lex -> flex
ÖÁÓÚbisonÓëyacc,ÔÚlinux϶¼ÓУ¬Ö»ÊÇÁ½ÖÖ²»Í¬µÄʵÏÖ¶øÒÑ¡£
bisonÊÇGUN°æµÄÓï·¨·ÖÎöÆ÷£¬yaccÊÇBerkeley°æµÄÓï·¨·ÖÎöÆ÷£¬Á½ÕßʵÏÖ¹¦ÄÜÀàËÆ£¬¿ÉÄÜ»áÓÐ΢СµÄÓïÒå²î±ð¡£
ËùÒÔÄãÖ±½ÓÓÃlexÓëyacc¾Í¿ÉÒÔÁË
Óб¾Êé¡£¡£¡£¡£¡£¡£¡£¡£
½Ð lex and yacc
Ïà¹ØÎÊ´ð£º
linux Ͻø³Ì´´½¨¡£
ʹÓÃvfork() º¯Êý´´½¨ÁË×Ó½ø³Ìºó£¬×Ó½ø³ÌÏÈÐÐÖ´ÐУ¬ÔÚ×Ó½ø³Ìµ÷ÓÃexit»òexec֮ǰ¸¸½ø³Ì´¦ÓÚʲô״̬£¿£¿
²»ÖªµÀ£»Ê×ÏÈδ±ØÊÇ×Ó½ø³ÌÏÈÖ´ÐУ»µÚ2¸¸½ø³ÌÒ²´¦ÓÚÖ´ÐÐ״̬£»ÖÁÓÚ¸¸½ø³Ìµ½µ××öʲô£»¿´´ ......
Çë½Ì£º
ÔÚ LINUXϵͳÖеÄORACLEÔõôн¨±í¿Õ¼ä£¿
Ò»ÑùµÄÃüÁî°¡¡£Èç¹ûûÓÃomfµÄ»°£¬Äã¾ÍÖ¸¶¨Ï·¾¶ºÍÊý¾ÝÎļþÃû¾ÍÐÐÁË¡£
create tablespace xxx datafile '/u01/..../aaa.dbf' size 10m;
CREATE TA ......
ÔÚlinuxÏÂдµÄһЩС³ÌÐòºÍ½Å²½£¬Ã¿´ÎÒªÔËÐж¼ÓÐÇл»µ½ËüËùÔÚµÄĿ¼£¬
ÔõÑùÈÃËüÔÚÆäËûĿ¼Ҳ¿ÉÒÔÓÃÄØ£¿¾ÍÈçÓÃvi»òlsÕâЩÃüÁîÒ»Ñù
³¢ÊÔ¹ýÌí¼Ó»·¾³±äÁ¿£¬µ«²»³É¹¦£¬²»¶®
ûÓÐÈ˻شð
ÏñviÄÇЩ£¬ËüÃÇËùÔÚµÄĿ¼¶¼Å ......
ÔÚ×Ô¼ºµÄµçÄÔÉÏ°²×°ÁËubuntu ¾ÍÊÇÏëÍæÒ»ÏÂ3D×ÀÃ棬ÓÚÊÇÏÂÔØÁË
compizconfig-settings-manager
emerald
simple-ccsm
fusion
ÕâЩ¶«Î÷£¬°²×°ÍêÖ®ºó£¬ÎÒÔÚµçÄÔÀïµã»÷ÁËemerald ......