Commit 2c634e1
committed
- removed templateError() imported function (from my previous commit) ... to be replaced by the new approach:
- introduced new magic builtin function
sourceInfo()
that returns contextual Absyn.Info structure based on the position in template files.
The sourceInfo() can only be used as a direct parameter into a template/imported function,... no let binding of its value is possible for now (to be possible when full semantics of the let will be implemented)
- added two Tpl functions Tpl.addSourceTemplateError() and Tpl.addTemplateError()
to SimCodeTV.mo which can be used to implement user defined templates for reporting template errors,
- see error() and errorMsg() example templates in SimCodeC.tpl and one usage of error() in literalExpConstBoxedVal() template
- Susan compiler now fully captures source info for every expression, so the proper semantic errors are on the way "to be really soon ..."
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8264 f25d12d1-65f4-0310-ae8a-bbce733d8d8e1 parent 76eb523 commit 2c634e1
File tree
9 files changed
+518
-330
lines changed- Compiler
- BackEnd
- Template
- Util
- susan_codegen/SimCode
9 files changed
+518
-330
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | 821 | | |
851 | 822 | | |
852 | 823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 95 | | |
110 | 96 | | |
111 | 97 | | |
| |||
1681 | 1667 | | |
1682 | 1668 | | |
1683 | 1669 | | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
1684 | 1682 | | |
1685 | 1683 | | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1686 | 1702 | | |
0 commit comments