æ£è¦è¡¨ç¾
Pythonã§æ§æ解æãè¡ãæ¹æ³ã§ãï¼BNFãæ¸ãã¦ãã£ã¤ãå®è£ ããå ´å㯠Lark ãªã©ã使ãã¾ããï¼ãã®ã¨ã³ããªã§ã¯ç°¡ä¾¿ãªæ¹æ³ã¨ã㦠pyparsing ã¢ã¸ã¥ã¼ã«ã®ä½¿ãæ¹ãç´¹ä»ãã¾ãï¼ãã°ãã¡ã¤ã«ããç¹å®ã®ãã¼ã¿ã ããæãåºãï¼ã¨ãã£ãç¨éãªãpyparsingã§ååâ¦
bashã®ã·ã§ã«ã¹ã¯ãªããã§æ£è¦è¡¨ç¾ã使ãæ¹æ³ãã¾ã¨ãã¾ã æ£è¦è¡¨ç¾ã§ãã¿ã¼ã³ããã bash ã®æ¼ç®å "=~" ã使ãã¾ãä¾ x=1234 if [[ $x =~ ^[0-9]+$ ]]; then echo "x is number" else echo "x is not number" fi æ£è¦è¡¨ç¾ã§é¨åæååãåãåºã ããããâ¦