Changes between Initial Version and Version 1 of aadlPrinter


Ignore:
Timestamp:
04/13/17 15:44:05 (7 years ago)
Author:
pdissaux
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • aadlPrinter

    v1 v1  
     1= AADL printer =
     2
     3The AADL unparser (aadlgen.sbp) takes a lists of prolog predicates and generates the corresponding textual AADL specification in a file whose name is given by the environment variable REPORTFILE.
     4
     5The predicates (facts base) must comply with the definition of thoses generated by the [wiki:aadlparser AADL parser] (aadlrev.exe).
     6The rules are generated from a HOOD design built with Stood and using the Stood prolog generator.
     7
     8== pragmas ==
     9
     10The AADL code generation can be controlled by pragmas that must be included into the fact base as AADL properties:
     11
     12The following properties control the case of AADL Keywords (default='Upper') and Identifiers (default='Lower').
     13When '!AsIs' is specified, the unparser keeps the given string without case change.
     14{{{
     15isProperty('','','','','','','LMP::Unparser_KW_Case',Case,'').
     16isProperty('','','','','','','LMP::Unparser_ID_Case',Case,'').
     17with Case = 'AsIs' | 'Lower' | 'Upper'
     18}}}
     19
     20The following property controls the insertion of a default header showing information contained by the isVersion/4 fact.
     21{{{
     22isProperty('','','','','','','LMP::Unparser_Insert_Header',Flag,'').
     23with Flag = 'Yes' | 'No' default value is 'No'.
     24}}}
     25
     26As an example, when the unparser is connected to the parser, the generated header looks like:
     27{{{
     28---------------------------------------------------
     29-- AADL2.2
     30-- aadlrev2.10
     31-- (c)Ellidiss Technologies
     32-- 11March2017
     33---------------------------------------------------
     34}}}