This can create a problem when porting code from one system to another: generally, you are best off re-running lex and yacc on a new platform, rather than porting the generated code.
当将代码从一个系统移植到另一个系统时,这会产生问题:通常,您最好在新的平台上重新运行lex和yacc,而不要移植生成的代码。
In fact, video game consoles are often an exception to general rules about modern code not needing much porting.
实际上,视频游戏控制台对于现代代码来说通常都是一个例外,不需要太多移植。
Porting legacy, untested code in Perl or any language is just plain tough, but writing failing tests could be a great help, and are a reasonable strategy.
移植未经测试的遗留perl或其他语言代码的确非常困难,但编写失败测试可能会帮上大忙,是一个合理的策略。
应用推荐