interfaceDeclaration
interface Declaration
Public API: explicitly declared with
@visibility public.One %-directive or prologue block of a grammar file.
$file = (new \BisonParser\Parser())->parse("%token A\n%%\ns: A;\n");
(string) $file->declarations[0]->location() // => '1:1'Methods§
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DeclarationTestcalls
Other tests reaching this symbol 3
TreeDumpercallsBisonGrammarCompilerTestcallsBisonGrammarReaderTestcalls
Relations§
Implemented by 14
- Code packages/bison-parser/src/Ast/Declaration/Code.php:19
- CodeProps packages/bison-parser/src/Ast/Declaration/CodeProps.php:22
- Define packages/bison-parser/src/Ast/Declaration/Define.php:24
- Expect packages/bison-parser/src/Ast/Declaration/Expect.php:19
- Flag packages/bison-parser/src/Ast/Declaration/Flag.php:22
- InitialAction packages/bison-parser/src/Ast/Declaration/InitialAction.php:18
- Option packages/bison-parser/src/Ast/Declaration/Option.php:21
- Param packages/bison-parser/src/Ast/Declaration/Param.php:19
- Prologue packages/bison-parser/src/Ast/Declaration/Prologue.php:18
- Start packages/bison-parser/src/Ast/Declaration/Start.php:19
- PrecedenceDeclaration packages/bison-parser/src/Ast/Declaration/Symbols/PrecedenceDeclaration.php:24
- SymbolDeclaration packages/bison-parser/src/Ast/Declaration/Symbols/SymbolDeclaration.php:23
- UnionDeclaration packages/bison-parser/src/Ast/Declaration/UnionDeclaration.php:19
- Line packages/bison-parser/src/Ast/Line.php:25
Type checks 1
Type declarations 5
- type BisonParser\Printer\DeclarationPrinter packages/bison-parser/src/Printer/DeclarationPrinter.php:51
- type BisonParser\Syntax\DeclarationParser packages/bison-parser/src/Syntax/DeclarationParser.php:68
- type BisonParser\Syntax\DeclarationParser packages/bison-parser/src/Syntax/DeclarationParser.php:108
- type BisonParser\Syntax\GrammarParser::parse() packages/bison-parser/src/Syntax/GrammarParser.php:69
- type SqlParser\Compiler\BisonGrammarReader packages/sql-parser/src/Compiler/BisonGrammarReader.php:95