Skip to content

Directory Overview

Sam Westrick edited this page Jan 24, 2023 · 1 revision

The src/ directory is structured as follows.

src/
│
├── base/                 # Library of useful primitives, data structures, etc.
│
├── lex/                  # Tokens and lexer for SML files
│
├── ast/                  # Definition of central AST type
│
├── parse/                # Parser for SML files
│
├── check/                # Implementations of various functions to check the
│                         # output of smlfmt, to make sure it never mangles code
│
├── prettier-print/       # New version of the pretty-printer for SML, which
│                         # traverses an AST to generate formatted output
│
├── pretty-print/         # (Deprecated) Old version of the pretty-printer for
│                         # SML. This has been replaced with prettier-print/
│
├── lex-mlb/              # Tokens and lexer for .mlb files
│
├── parse-mlb/            # Parser for .mlb files
│
└── syntax-highlighting/  # Implementation of a simple syntax highlighter, for
                          # outputting to the terminal with colors
Clone this wiki locally