èæ¯ ãã¾ã¾ã§ãã¡ããã¨ãã¼ãµã¨ãããã®ãæ¸ãããã¨ããªãã£ãã®ã§åå¼·ã®ããã«ã¢ã¬ã³ã¬èããªãããã£ã¦ã¿ããã¨æã£ã¦ãç°¡åãªæ°å¼ãæ¨ã«ãããã¼ãµãæ¸ãã¦ã¿ããã¨æã£ãã®ã§ãï¼ï¼ ä»åä½ããã¼ãµã®ä»æ§ ãã¼ã¹ããæ°å¼ã®æ¼ç®åã¯äºé æ¼ç®å + - * / ã¨åé æ¼ç®å + - ã ãã æ¬å¼§ã¨ãã¯ä½¿ããªãã æ¼ç®ã®åªå é ä½ã¯ * / ã®ã»ãã + - ããé«ããã¤ã¾ãã 1 + 1 * 1 㯠1 + (1 * 1) åé æ¼ç®åã¯äºé æ¼ç®åããåªå é ä½ãé«ããã¤ã¾ãã - 1 + 1 㯠(-1) + 1 ã§ãä½ã£ã¦ã¿ãï¼ ã½ã¼ã¹ã³ã¼ã filter é¢æ°ã¨ã使ã£ã¦ãã®ã§ã Firefox only ã§ãã var parse = function(source) { var tokens = source.match(/[-+*/]|[^-+*/\s]+|\s+/g).filter(/^[^\
{{#tags}}- {{label}}
{{/tags}}