Skip to content

Commit

Permalink
Аннотации.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpas committed Nov 13, 2017
1 parent a937d2d commit 708a5f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ru/dmpas/onescript/plugin/OneScript.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ subCodeBlock ::= (subVarDeclaration SEMICOLON?)* codeBlock?
subVarDeclaration::= VAR_KEYWORD subVarsList
subVarsList ::= var_name (COMMA var_name)*
var_name ::= identifier
subdeclaration ::= Compiler_Directive* SUB_KEYWORD subName LPAREN param_list? RPAREN EXPORT_KEYWORD?
private paramName::= identifier
annotationParam ::= (paramName (ASSIGN const_value)?) | const_value
annotationParams ::= LPAREN annotationParam (COMMA annotationParam)* RPAREN
annotation ::= COMPILER_DIRECTIVE annotationParams?
subdeclaration ::= annotation* SUB_KEYWORD subName LPAREN param_list? RPAREN EXPORT_KEYWORD?
subName ::= identifier
codeBlock ::= (command SEMICOLON*)*
private numeric ::= float | decimal
Expand Down

0 comments on commit 708a5f9

Please sign in to comment.