Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flexϸ½Ú ÉîδÀ´¼¼Êõ

1¡¢ÔÚflexÖУ¬²»ÄÜÖØÐ¶¨Òåinput()»òunput()£¬µ«ÊÇÄÜÖØÐ¶¨ÒåYY_INPUT£¬ËüÊÇflexµ÷ÓõĴÓÊäÈëÎļþÖжÁÈ¡Îı¾µÄºê¡£flex»º³åÇø£¬±»¶¨ÒåΪYY_BUFFER_STATEÀàÐÍ¡£Àý³Ìyy_create_buffer(FILE*,size0)Éú³ÉÖ¸¶¨´óСµÄflex»º³åÇø£¬Í¨³£ÊÇYY_BUF_SIZE£¬ÓÃÓÚ¶ÁÈ¡stdioFILE¡£¶Ôyy_swithc_to_buffer(flexbuf)µÄµ÷ÓøæËßɨÃè³ÌÐò¶ÁÈ¡ÏàÓ¦µÄÎļþ£¬¶øyy_delete_buffer(flexbuf)ɾ³ýflex»º³åÇø¡£µ±Ç°»º³åÇøÊÇYY_CURRENT_BUFFER£¬<<EOF>>ÔÚµ÷ÓÃyywrap()Ö®ºóÆ¥ÅäÎļþµÄ½áβ¡£
2¡¢yywrap()µ±´Ê·¨·ÖÎö³ÌÐòµ½´ïÊäÈëÎļþµÄ½áβʱ£¬µ÷Óá£
3¡¢¿ÉÒÔÖØÐ¶¨ÒåYY_INPUT£¬ÓÃÓÚ¶ÁÈ¡Êý¾Ý¿éµÄºê¡£
YY_INPUT(buffer,result,max_size) 
buffer:×Ö·û»º³åÇø
result:´æ´¢¶ÁÈ¡µÄ×Ö·ûÊýµÄ±äÁ¿
max_size:»º³åÇøµÄ´óС
4¡¢yylinenoÊÇÊäÈëÎļþµÄÐкÅ
1¡¢REJECT:ÕÒµ½Öصþ±ê¼ÇµÄËùÓгöÏÖ¡£È磺ÕÒµ½µ¥´Êpink,ink,pinµÄËùÓгöÏÖ
...
%%
pink {npink++;REJECT;}
ink {nink++;REJECT;}
pin  {npin++;REJECT;}
...
Èç¹ûÊäÈëµ¥´Êpink,ËùÓÐ3¸öģʽ¶¼Æ¥Å䡣ûÓÐREJECTÓï¾ä£¬ÄǾÍÖ»ÓÐ"pink"Æ¥Åä¡£
2¡¢yylex()
´Óyylex()ÖÐÏòµ÷ÓÃÕߣ¨Í¨³£ÊÇÓï·¨·ÖÎö³ÌÐò£©·µ»ØÒ»¸öÖµ¡£Ï´ε÷ÓÃyylex()ʱ£¬É¨Ãè³ÌÐò´ÓËüÍ£Ö¹µÄµØ·½¼ÌÐø¡£
¹æÔò¶ÎÖеÄËùÓдúÂë±»¿½±´µ½yylex()¡£
3¡¢yyrestart(fuke)ÖØÐÂÆô¶¯É¨Ã裬¼´yylex()ÖØÐ´ÓÎļþ¶ÁÈë¡£
4¡¢FLEXÆô¶¯Ê±Ä¬ÈÏÆðʼ״̬ΪINITIAL
BEGIN ״̬
£¥SÉùÃ÷ÆÕͨÆðʼ״̬
£¥xÉùÃ÷ÆðʼÅÅËüÐÔ״̬
ûÓÐÆðʼ״̬µÄ¹æÔòÔÚÅÅËüÐÔ´¦ÓÚ¼¤»îʱ²»Æ¥Åä¡£
5¡¢unput()
½«×Ö·ûc·µ»Ø¸øÊäÈëÁ÷¡£¼´°ÑÒѾ­É¨ÃèµÄ×Ö·ûÍÆ»Ø
6¡¢yyleng
±ê¼ÇÎı¾³¤¶È
7¡¢yyless()
yyless(n)ÍÆ»Ø³ý±ê¼Ç¿ªÍ·µÄn×Ö·ûÒÔÍâµÄËùÓÐ×Ö·û¡£
8¡¢yymore()
ÔÚÕâ¸ö±ê¼Ç¸½¼ÓÏÂÒ»¸ö±ê¼Ç
Èç:
%%
hyper yymore()
text printf("Token is %s\n",yytext);
Èç¹ûÊäÈëµÄ×Ö·û´®ÊÇ"hypertext",ÔòÊä³ö"Token is hypertext"
9¡¢yywrap()
·µ»Ø0¼ÌÐøÉ¨Ã裬·µ»Ø1±¨¸æÎļþ½áβµÄÁã±ê¼Ç


Ïà¹ØÎĵµ£º

flex repeater¿Ø¼þRepeater is not executing"µÄÒì³£


flex repeater¿Ø¼þ×¢Òâ
Repeater ¹ËÃû˼Ò壬Repeat¾ÍÊÇÖØ¸´µÄÒâ˼£¬ Repeater ¾ÍÊÇÓÃÀ´Öظ´µÄ¿Ø¼þ
Repeater »á¸ù¾ÝÊý¾ÝÔ´ÖжÔÏóµÄ¶àÉÙÀ´²úÉú¶àÉÙ¸ö×ÓÏÉú³ÉµÄ×ÓÏîÈ«²¿ÊÇÒÔÊý×éÐÎʽ´æÔÚµÄ
<mx:Repeater id="myRepeater" dataProvider="{myArray}">
        <mx:HBox> ......

flex ÌØÐ§ Ðýתtooltip

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertic ......

Flex/AS3Àà¿â×ÊÔ´´óÈ«


1¡¢as3ebaylib
http://code.google.com/p/as3ebaylib/
2¡¢as3youtubelib
http://code.google.com/p/as3youtubelib/
3¡¢as3flickrlib
http://code.google.com/p/as3flickrlib/
4¡¢Yahoo ASTRA Flash Components
http://developer.yahoo.com/flash/astra-flash/
5¡¢facebook-as3
http://code.google.com/p/faceboo ......

Flex ¿Ùͼ³ÌÐò

ÏîÄ¿ÖУ¬Óû§×Ô¶¨ÒåÍ·Ïñ¹¦ÄÜÒªÇóʵÏÖÓû§×Ô¶¨ÒåÍ·Ïñ£¬²¢ÇÒ¿ÉÒÔ×ÔÓÉÑ¡ÔñͼƬָ¶¨ÇøÓò×÷ΪͷÏñÏÔʾ¡£     ڤ˼¿àÏ룬ÕÒÁ˰ëÌì×ÊÁÏ£¬ÖÕÓÚÕÒµ½Ò»ÆªÏà¹ØÎÄÕ£¬²¢ÌṩÁËÔ´´úÂë¡£ËäÈ»ÑÛ¿´ÓÐÁËüĿ£¬µ«ÊÇËÆÐзÇÐС£     http://www.flashas.net/html/flashasyy/20080423/2950.html  £ ......

×ªÔØÒ»ÆªFlex×é¼þÉúÃüÖÜÆÚµÄÎÄÕÂ

¿´Á˺ܶàFlexµÄÊ飬¹ØÓÚFlexµÄÉúÃüÖÜÆÚ×ÔÈÏΪÁ˽âµÄ»¹²»´í£¬µ«ÊÇͻȻÉÏÍøÉÏ¿´µ½Ò»¸ö¸çÃÇÓÃͼ±í°ÑFlex µÄApplicationÆô¶¯¹ý³ÌÒÔ¼°×Ô¶¨Òå×é¼þµÄÉúÃüÖÜÆÚ±í´ïµÄ·Ç³£ÇåÎú£¬ºÜÊÇÅå·þ£¬ÌØ·ÖÏí³öÀ´£¬ÄÚÈÝÈçÏ£º
Flex Custom Component LifeCycle
ÓÉ jexchan
׫д
¡¡http://blog.ityao.com/archives/169

......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ