ºÐ¼® :: Á¾¸¶EBNF ±â¹Ý REGEXP ¹é Æ®·¢Æà Æļ ¹× Æ®¸® Æò°¡ÀÚ | |
Áö±Ý ´Ù¿î·Îµå |
ºÐ¼® :: Á¾¸¶ ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Arthur Goldstein
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~arthur/
ºÐ¼® :: Á¾¸¶ ű×
ºÐ¼® :: Á¾¸¶ ¼³¸í
EBNF ±â¹Ý Regexp ¹é Æ®·¢Æà Æļ ¹× Æ®¸® Æò°¡ÀÚ Parse :: StallionÀº EBNF ±â¹Ý Regexp ¹é Æ®·¢Æà Æļ ¹× Æ®¸® Æò°¡ÀÚÀÔ´Ï´Ù. Synopsis »ç¿ë ºÐ¼® :: Á¾¸¶; ³» % rules = (rule_name_1 => ..rule_definition .., rule_name_2 => ..rule_definition ..); ³» $ nation = »õ ±¸¹® ºÐ¼® :: Á¾¸¶ (\ % ±ÔÄ¢, ´ÙÀ½ ¸Å°³ º¯¼ö´Â ¼±ÅÃÀûÀÔ´Ï´Ù {start_rule => "rule_name_1 ', #default ÇÏÀ§ => 0, #default 0 no_evaluation => 0). #default 0 max_steps => 0, #default 1000000; do_not_compress_eval => 0, #default 0 serator => '__xz__', #default '__xz__'requy_not_match_whole_string => 0, #default 0 parse_forward => sub {...}, #default no sub parse_backtrack => sub {...}, #default ¾øÀ½ sub _ _only => 0, #default 0 unreachable_rules_allowed => 0, #default 0 fast_move_back => #default 1 À¯¹ßµÇÁö ¾Ê°Å³ª #default 1 - backtrack}. ³» $ parse_info = {}; # ¼±ÅÃÀû, ¼º´É¿¡ ¾à°£ÀÇ ¿µÇâ ³» $ parse_hash = {}; # ¼±Åà »çÇ×, ¼º´É¿¡ ¾à°£ÀÇ ¿µÇâ MY $ PARSE_TRACE = []; # ¼±ÅÃÀû, ¼º´É¿¡ ´ëÇÑ ¾à°£ÀÇ ¿µÇâ My $ °á°ú = $ nathion-> parse_and_evaluate ($ sequa_string, # parse_info¿¡¼ parse_info => $ parse_info, #if parse_info, #if parse_trace => $ PARSE_TRACE, # Á¦°øµÈ °æ¿ì, ÃßÀû ¸®ÅÏ µÈ start_position => 0, #default 0 start_rule => $ start_rule, parse_hash => $ parse_hash, # ·çƾ È£Ãâ µÈ ·çƾÀÇ parse_hash} parse_hash}. # Á¤ÀǸ¦ Çؼ® ÇÒ ¼ö¾ø´Â °æ¿ì (ù ¹ø° ¹®ÀÚ·Î Ãà¾à µÉ ¼ö ÀÖÀ½), ( 'subrule_1', 'subrule_2', ..., Æò°¡ ( 'subrule_1', 'subrule_2') ..., Æò°¡ (ÇÏÀ§ {...})) ´ÙÁß ( 'subrule_1', Æò°¡ (ÇÏÀ§ {...})) ÀÙ (QR / regex /, Æò°¡ (sub {...})) Á¾¸¶ Æĵµµé ÀÔ·Â µÈ ¹®¹ý ±ÔÄ¢À» »ç¿ëÇÏ¿© ¹®ÀÚ¿À» Æò°¡ÇÕ´Ï´Ù. ±¸¹® ºÐ¼®Àº ÆĽº Æ®¸®¸¦ Çü¼ºÇÏ´Â ±íÀÌ Ã¹ ¹ø° °Ë»ö¿¡¼ ½ÃÀÛ ±ÔÄ¢À» ÅëÇØ ÇÏÇâ½ÄÀ¸·Î ¼öÇàµË´Ï´Ù. ±ÔÄ¢ÀÌ Æļ ¹é Æ®·¢°ú ÀÏÄ¡ÇÏÁö ¾ÊÀ» ¶§´Â ´Ù¸¥ ¿É¼ÇÀÌÀÖ´Â ³ëµå·Î ÀÏÄ¡ÇÏÁö ¾ÊÀ» ¶§, Æ®¸® ³ëµå¸¦ Æò°¡ÇÒ °æ¿ì, Æò°¡ ¼ºê ·çƾÀº ÀÚ½Ä ³ëµåÀÇ ¸®ÅÏ µÈ °ªÀ» ³ªÅ¸³»´Â Çؽÿ¡ ´ëÇÑ ÂüÁ¶°¡ Á¦°øµË´Ï´Ù. Æò°¡´Â ÆĽº Æ®¸®¸¦ »ý¼ºÇÏ°í ÆĽÌÇÏ´Â ¹®ÀÚ¿¿¡ ¿µÇâÀ» ¹ÌÄ¡´Â ÀÏÄ¡¸¦ °ÅºÎÇÏ´Â µ¿¾È Æò°¡°¡ ¼öÇà µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌ´Â º¹ÀâÇÑ ¹®¹ýÀ» Çã¿ëÇÕ´Ï´Ù. Æò°¡°¡ ¼º°øÀûÀ¸·Î ±¸¹® ºÐ¼®ÇÏ´Â µ¿¾È ¼öÇàµÇÁö ¾ÊÀ¸¸é Æ®¸®´Â ¿ÞÂÊ¿¡¼ ¿Ã¹Ù¸¥ ¼ø¼·Î Æò°¡µË´Ï´Ù. ÀÎ½Ä µÈ ¹®¸ÆÀº ¸Æ¶ôÀÌ ¾øÀ¸¸ç È®Àå µÈ ¹é¿ì½º - naur ÇüÅ·ΠǥÇö µÈ °Í°ú À¯»çÇÕ´Ï´Ù. (EBNF). ±¸¹® ºÐ¼®µÇ´Â °´Ã¼´Â ¹®ÀÚ¿ ÀÏ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ¹®ÀÚ¿ÀÌ ¾Æ´Ñ ¼½¼ÇÀ» Á¦¿ÜÇÏ°í ¼³¸í¼¿¡¼ ¹®ÀÚ¿ÀÌ ÆĽ̵ǰí ÀÖ´Ù°í °¡Á¤ÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
ºÐ¼® :: Á¾¸¶ °ü·Ã ¼ÒÇÁÆ®¿þ¾î
Biblio :: Ill :: Iso :: ¹è¼Û
ISO 10161 Interlibrary Loan Shipping ¸Þ½ÃÁö 󸮸¦À§ÇÑ Perl È®Àå ...
190