compiler/parser 编译器

6.21

介绍

编译器(parser, compiler)负责对文本进行解析,并输出结果用处进一步的处理。

编译器的编译器(parser generator, compiler of compiler):输出结果用于下一个编译器的输入。

常用工具

The Lex & Yacc Page

Yacc

Jison

Bison

应用:文档中的流程图、时序图

流程图:http://flowchart.js.org/

时序图:https://bramp.github.io/js-sequence-diagrams

与 Markdown 组合,通过对应的解析和处理,可以方便地生成带图表的文档。

📖