Skip to content

Commit 07c0fe6

Browse files
authored
Update 03-02-parser.rst to mention BNF notation for Vala Grammar
Help people find Vala BNF grammar easier from search engines.
1 parent be39eb5 commit 07c0fe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/contributor-guide/compiler-guide/03-00-the-vala-compiler/03-02-parser.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ Error Handling
279279
I don't want to spoil your fun too much by going into the details of the parser, other than that every parse\_ function can throw a ParseError. ParseError is caught when parsing a block or the declarations of a namespace, class, struct, or interface. Fixme.
280280

281281

282-
Grammar of Vala
283-
---------------
282+
Grammar of Vala (BNF Notation)
283+
------------------------------
284284

285285
This grammar is hand-generated from Vala.Parser. Sometimes the structure of this grammar diverges slightly from the code, for example optional non-terminal symbols. However the non-terminal symbol names usually match a parse\_ method in Vala.Parser.
286286

@@ -609,4 +609,4 @@ More literal-specific grammar at https://gnome.pages.gitlab.gnome.org/vala/manua
609609
local_variable ::= identifier [ inline_array_type ] [ "=" expression ]
610610
611611
expression_statement ::= statement_expression ";"
612-
612+

0 commit comments

Comments
 (0)