Cotal TypeScript packages
    Preparing search index...

    Function validate

    • Parse and validate a program. Throws LangErrors carrying every problem found, so an author repairs the whole list in one pass. Returns the AST plus the lints that did not fail the program.

      Parameters

      • source: string
      • file: string = "program.cotal.js"

      Returns ValidateResult