Demonstrate how to call another console program and capture the standard output, modify and then output.
演示如何调用并捕获另一个控制台程序的标准输出,修改后再输出。
For example, you can modify the data for the business item used as the input and output, then synchronize with the form.
例如,您可以修改用作输入或输出的业务项数据,然后与表单进行同步。
Tools, based on ParseTree, already exist, such as Ruby2Ruby which can turn an AST back into Ruby source code; useful if a tool wants to modify an AST and then output it as Ruby source.
已有的基于分析树的工具,比如Ruby2Ruby可以把AST转换成Ruby源代码;如果某工具想修改AST并输出为Ruby源代码,这很有用。
应用推荐