The latter is the emphasis of this article . its hard core is the accidence analysis builder grammar _ lexer . mll and the syntax analysis builder grammarjpaser . mly . it transforms the fortran character string in the program , which would be processed automatic differentiation transform , into data stream of diversified syntax units 詞法分析和語法分析部分又分為輸入命令數(shù)據(jù)流以及fortran源程序數(shù)據(jù)流的詞法分析和語法分析,后一部分是本文分析的重點(diǎn),它以詞法分析程序生成器grammarlexer . mll和語法分析程序生成器grammarpaser . mly為核心,將進(jìn)行自動(dòng)微分變換的fortran源代碼字符串變換成各類語法單位的數(shù)據(jù)流。