Class DockerHeredocParser

  • All Implemented Interfaces:
    TreeParser<Tree>

    public class DockerHeredocParser
    extends DockerParser
    For parsing Heredoc blocks inside a Dockerfile an extended parser with a different grammar root rule is used. This parser takes care of the offset of the initial Heredoc in the Dockerfile itself. It provides an extended NodeBuilder which adjust the Heredoc tokens with the initial offset.