There is no completely standardized way to do this; the most portable solution is to open a temporary file, write data to it, and hand it to the lexer. Here's a sample bit of code to do this.
对此没有完全标准化的方法;最轻便的方法是打开一个临时文件,将数据写入到这个临时文件,然后将它交给lexer。
There is no completely standardized way to do this; the most portable solution is to open a temporary file, write data to it, and hand it to the lexer. Here's a sample bit of code to do this.
对此没有完全标准化的方法;最轻便的方法是打开一个临时文件,将数据写入到这个临时文件,然后将它交给lexer。
应用推荐