Interface FormalGrammarLoader


public interface FormalGrammarLoader
Interface for loading grammars from formal definition files (PEG, BNF, etc.).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    load(Path path)
    Loads a grammar from a file.
  • Method Details

    • load

      Grammar load(Path path) throws IOException
      Loads a grammar from a file.
      Parameters:
      path - the file path
      Returns:
      the loaded grammar
      Throws:
      IOException - if the file cannot be read