Skip to content

Conversation

henrikt-ma
Copy link
Collaborator

After this, we can think more about how to express this kind of annotation in the record style.


\begin{annotationdefinition}[version]
\begin{synopsis}\begin{lstlisting}
/*literal*/ constant String version
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/*literal*/ constant String version
/*literal*/ constant String version;

I thought the original idea was to have a full declaration with semi-colon.
I noticed that one of the recent updates also skipped that.

"script" "=" STRING
| "change" "(" [ conversion-rule { "," conversion-rule } ] ")"

conversion-rule : STRING
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
conversion-rule : STRING
conversion-rule : IDENT function-call-args

These are supposed to be calls of the conversion-functions.

/*literal*/ constant String version
\end{lstlisting}\end{synopsis}
\begin{semantics}
\lstinline!version = $\mathit{currentVersion}$! where is a \lstinline[language=grammar]!PACKAGE-VERSION-STRING! defines the version number of the model or package.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\lstinline!version = $\mathit{currentVersion}$! where is a \lstinline[language=grammar]!PACKAGE-VERSION-STRING! defines the version number of the model or package.
\lstinline!version = $\mathit{currentVersion}$! where is a \lstinline[language=grammar]!PACKAGE-VERSION! defines the version number of the model or package.

The syntax for package versions currently use PACKAGE-VERSION


conversion : conversion-none | conversion-with-rules

conversion-none : "noneFromVersion" "=" PACKAGE-VERSION-STRING
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
conversion-none : "noneFromVersion" "=" PACKAGE-VERSION-STRING
conversion-none : "noneFromVersion" "=" PACKAGE-VERSION

Same

conversion-with-rules :
"from" "("
"version" = package-versions
[ "," "to" "=" PACKAGE-VERSION-STRING ]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[ "," "to" "=" PACKAGE-VERSION-STRING ]
[ "," "to" "=" PACKAGE-VERSION ]

Same


used-package :
IDENT "("
"version" "=" PACKAGE-VERSION-STRING
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"version" "=" PACKAGE-VERSION-STRING
"version" "=" PACKAGE-VERSION

Same

Copy link
Collaborator

@HansOlsson HansOlsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally good, but some minor comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants