Debian Codegraph @

doc/guide/src/FrontEnd.adoc

raw
1 = FrontEnd
2
3 <<FrontEnd#>> is a translation pass from source to the <<AST#>>
4 <<IntermediateLanguage#>>.
5
6 == Description
7
8 This pass performs lexing and parsing to produce an abstract syntax
9 tree.
10
11 == Implementation
12
13 * https://github.com/MLton/mlton/blob/master/mlton/front-end/front-end.sig[`front-end.sig`]
14 * https://github.com/MLton/mlton/blob/master/mlton/front-end/front-end.fun[`front-end.fun`]
15
16 == Details and Notes
17
18 The lexer is produced by <<MLLex#>> from
19 https://github.com/MLton/mlton/blob/master/mlton/front-end/ml.lex[`ml.lex`].
20
21 The parser is produced by <<MLYacc#>> from
22 https://github.com/MLton/mlton/blob/master/mlton/front-end/ml.grm[`ml.grm`].
23
24 The specifications for the lexer and parser were originally taken from
25 <<SMLNJ#,SML/NJ>> (version 109.32), but have been heavily modified
26 since then.