Skip to main content

Module parser

Module parser 

Source
Expand description

Span-aware Dockerfile parser.

The parser deliberately keeps the long-standing Instruction fields used by the linter while attaching structured flags, heredocs, words, variables, directives, source spans, forms, and recoverable diagnostics.

Structs§

Dockerfile
Heredoc
Instruction
InstructionFlag
ParseDiagnostic
ParserDirective
SourcePosition
SourceSpan
VariableReference
Word

Enums§

DiagnosticSeverity
InstructionForm
QuoteStyle

Functions§

parse
Compatibility entry point used by existing rules.
parse_document
Parse a complete Dockerfile and retain both its AST and diagnostics.