silver icon indicating copy to clipboard operation
silver copied to clipboard

Parser changes for documentation generator

Open fnussbaum opened this issue 1 year ago • 0 comments

This PR introduces changes to the parser for the documentation generator in development: Comments starting with exactly three slashes are parsed as annotations with the key "doc". Moreover, annotations can now be put before specification keywords. Such annotations are put into a new annotations-field in the PSpecification-nodes in the parse AST. During translation into the Viper AST, specification annotations are pushed into the corresponding expression, as there are no specification nodes in the AST.

fnussbaum avatar Mar 18 '24 14:03 fnussbaum