The Java grammar states ModifiersOpt: { Modifier }. Modifierdefined as one of public, protected, private, static, etc ..... {x}denotes zero or more occurrences x.
ModifiersOpt: { Modifier }
Modifier
public, protected, private, static
{x}
x
We know that is public publicnot a valid identifier. Does this mean that any list item Modifier(e.g. public) appears only once in {Modifier}? Is there a "standard" parser combinator for { Modifier }?
public public
public
{Modifier}
{ Modifier }
Not all errors in a Java program are syntax errors. For example, an error like this public privatemight (as you discovered) be considered a semantic error.
public private
, , , ,
int i = "type error";
, Java.
. aioobe, , public private, , . , , .
BNF-:{x} x.
BNF-:
{x} x.
Source: https://habr.com/ru/post/1786916/More articles:Download the file from the link in the application application for the WPF browser - wpfCreate PDF files using page layouts using CSS - cssDependency Injection in .NET - c #A query on db.Model retrieves all the properties of db.Model, whether they are needed or not. Is there an alternative? - pythonHow can I find out if a txt file is binary or using its contents? - c #A deal in sight with Hibernate, Spring, Struts - springDoes WCFStorm support calling WCF services with JSON enabled? - jsonDelphi - Authentication Engine Offers - authenticationЧастичное регулярное выражение - rubyHow to prevent replaceWith from creating multiple text nodes? - jqueryAll Articles