Opened 17 years ago
Closed 17 years ago
#28 closed enhancement (fixed)
improvements to model printing with source
| Reported by: | Stephen Siegel | Owned by: | ywei |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | model | Version: | 1.0 |
| Keywords: | model print readability | Cc: | ywei@… |
Description
The format for including source code in the model print out could be improved. This is an excerpt of what it looks like now:
begin model Impl
| begin input variables
| | N : int;
line 1 column 0 through line 1 column 25:
input int N{N>=0 && N<=2};
| | a : int[N];
line 2 column 0 through line 2 column 14:
input int[N] a;
| end input variables;
| begin output variables
| | s : real;
line 3 column 0 through line 3 column 13:
output real s;
| end output variables;
| begin process 0
| | main function : main;
Function signature: line 5 column 0 through line 5 column 10:
void main()
| | begin function main
It would look better if the source code could be incorporated into the tree-structure. Also, "line 5 column 0 through line 5 column 10" could be abbreviated like 5.0-5.10 to save space. Here is what it will look like:
begin model Impl
| begin input variables
| | N : int;
| | | foo.mmp 1.0-1.25 "input int N{N>=0 && N<=2};"
| | a : int[N];
| | | foo.mmp 2.0-2.14 "input int[N] a;"
| end input variables;
| begin output variables
| | s : real;
| | | foo.mmp 3.0-3.13 "output real s;"
| end output variables;
| begin process 0
| | main function : main;
| | begin function main
Change History (2)
comment:1 by , 17 years ago
| Status: | new → accepted |
|---|
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

Changed as required.