Skip to content

Commit

Permalink
modelica#2620 replace non existing comment non-terminal with descript…
Browse files Browse the repository at this point in the history
…ion non-terminal
  • Loading branch information
adrpo committed Jul 20, 2020
1 parent 333231b commit cc6083c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions chapters/syntax.tex
Expand Up @@ -101,18 +101,18 @@ \subsection{Class Definition}\doublelabel{class-definition}

short-class-specifier :
IDENT "=" base-prefix type-specifier [ array-subscripts ]
[ class-modification ] comment
| IDENT "=" enumeration "(" ( [ enum-list ] | ":" ) ")" comment
[ class-modification ] description
| IDENT "=" enumeration "(" ( [ enum-list ] | ":" ) ")" description

der-class-specifier :
IDENT "=" der "(" type-specifier "," IDENT { "," IDENT } ")" comment
IDENT "=" der "(" type-specifier "," IDENT { "," IDENT } ")" description

base-prefix :
[ input | output ]

enum-list : enumeration-literal { "," enumeration-literal}

enumeration-literal : IDENT comment
enumeration-literal : IDENT description

composition :
element-list
Expand Down Expand Up @@ -143,10 +143,10 @@ \subsection{Class Definition}\doublelabel{class-definition}
[ inner ] [ outer ]
( class-definition | component-clause |
replaceable ( class-definition | component-clause )
[ constraining-clause comment ] )
[ constraining-clause description ] )

import-clause :
import ( IDENT "=" name | name [ ".*" | "." ( "*" | "{" import-list "}" ) ] ) comment
import ( IDENT "=" name | name [ ".*" | "." ( "*" | "{" import-list "}" ) ] ) description

import-list :
IDENT { "," IDENT }
Expand All @@ -173,7 +173,7 @@ \subsection{Component Clause}\doublelabel{component-clause}
component-declaration { "," component-declaration }

component-declaration :
declaration [ condition-attribute ] comment
declaration [ condition-attribute ] description

condition-attribute:
if expression
Expand Down Expand Up @@ -217,7 +217,7 @@ \subsection{Modification}\doublelabel{modification}
type-prefix type-specifier component-declaration1

component-declaration1 :
declaration comment
declaration description

short-class-definition :
class-prefixes short-class-specifier
Expand All @@ -238,7 +238,7 @@ \subsection{Equations}\doublelabel{equations1}
| connect-clause
| when-equation
| component-reference function-call-args )
comment
description

statement :
( component-reference ( ":=" expression | function-call-args )
Expand All @@ -249,7 +249,7 @@ \subsection{Equations}\doublelabel{equations1}
| for-statement
| while-statement
| when-statement )
comment
description

if-equation :
if expression then
Expand Down

0 comments on commit cc6083c

Please sign in to comment.