ruby ÒªÈçºÎ寫bnf
ÎÒÊÇÓÃnetbeans È¥寫bnf
a program will ONLY accept strings based on the following grammar:
<compute> --> <value> = <expression>
<value> --> X | Y | Z
<expression> --> <value> + <expression>
| <value> - <expression>
| <value>
ÎÒÓÃÒÑ經ÓÃtreetop È¥寫rules
ÎÒ現ÔÚ×öµ½output and input
ÎÒ現ÔÚÒªÖªµÀÔõ麼check letter
ÏñÊÇËûÈç¹ûÊÇС寫µÄ話¾ÍÊÇ Lexical Error: Unrecognized character ¡®z¡¯
Èç¹ûÊÀx y z ÒÔÍâµÄ話 ¾ÍÊÇSyntax Error: Operation ¡®a b¡¯ is invalid
還ÓÐÔõ麼show bnf ÔÚÄã°´enter時 Ëû會°ÑËùÓеÄshow ³ö來
ÏòÊÇ X=X+Y-Z
<compute> --> <value> = <expression>
 
Ïà¹ØÎÊ´ð£º
±¾ÈËÓеãC££¸újavaµ××Ó£¬»ØÍ·Ö±½ÓÀ´Ñ§ROR¡£
Ôõô¸Ð¾õROR¾ÍÄÇô¶ñÐÄÈË£¬µ«ÓÖºÜÏëѧºÃ£¬ÆÈÓÚ¸÷·½ÃæѹÁ¦Ò²Ö»ÄÜѧϰROR¡£Ñ§ÁË´ó¸ÅÓÐÁ½¸öÔ°ɣ¬¿ÉÎÒ×ܸоõ×Ô¼ºÃŶ¼Ã»Èë¡¡Ì«¶àµÄÉËÐĵĻ°¾Í²»Ïë¶à˵ÁË£¬Ö»Ï£Íû¿´µ½µÄ¸ß ......
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
JavascriptÓÐרÀ¸µÄ£ºhttp://forum.csdn.net/SList/JavaScript
×ð¾´µÄÓû§deping_chen£¬ÄúºÃ£º ......
Python code:
puts true or false
puts false or true
ΪʲôÉÏÃæµÄÊä³ötrue£¬ÏÂÃæµÄÊä³öfalse£¿ÄѵÀÖ»ÈÏorÇ°ÃæµÄ£¿
¾Ý˵orºóÃæÊÇÖ±½ÓÊ¡ÂԵģ¬²»ÖªµÀÊDz»ÊÇÕâÑù¡£
Â¥ÉϵĴ𰸺ÃÏñ²»ÊÇÎÒÏëÒªµÄ
rubyÉçÇøÔõ ......
ÎÒÏÖÔÚ²»µÃ²»ÃæÁÙÒ»¸öÑ¡Ôñ£º A£¬Ìø²Û¼ÌÐø×öJ2EE. B,תÐÍ×örailsµÄ¿ª·¢
ÔÚй«Ë¾¹¤×÷ÒѾ°ëÄ꣬Õâ±ßµÄ·ÕΧ±È½ÏÇáËÉÓä¿ì£¬µ«ÊÇÎÒ¸ºÔðµÄÒ»¸öJavaÏîÄ¿ÒѾÉÏÏߣ¬°´ÕÕpmµÄÒªÇó£¬ÈÃÎÒתÐÍ×örails¿ª·¢¡£¾ÍÎÒѧϰrailsµÄ¹ý³ ......
ѧϰPHPÓÐÒ»¶Îʱ¼äÁË ÏÖÔÚÏëͬʱѧϰRUBY ON RAILS
ÓÉÓÚ֮ǰѧϰPHP ÒѾװºÃÁËAPACHE ºÍ MYSQL ÏÖÔÚÏëÈÃAPACHE·þÎñÆ÷Ò²¿ÉÒÔÔËÐÐRUBY¡£
Ó¦¸ÃÔõô°ì£¿
Çë¸ßÊÖÌáʾ лл
RailsÓ¦Óò¿ÊðרÀ¸: http://ww ......