我在尝试获取令牌以对 Minic 语言进行词法分析时遇到此错误!
document.writeln("1,2 3=()9$86,7".split(/,| |=|$|/));
document.writeln("<br>");
document.writeln("int sum ( int x , int y ) { int z = x + y ; }");
document.writeln("<br>");
document.writeln("int sum ( int x , int y ) { int z = x + y ; }".split(/,|*|-|+|=|<|>|!|&|,|/));
最后一行的调试器出现错误 Uncaught SyntaxError: Invalid regular expression: Nothing to repeat !!