Bug 571311 - CFG file macro multiplication
Summary: CFG file macro multiplication
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: titan.plugins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Arpad Lovassy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 16:48 EST by Arpad Lovassy CLA
Modified: 2021-04-23 11:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arpad Lovassy CLA 2021-02-18 16:48:44 EST
Implementing macro multiplication in the CFG file in the [DEFINE] section

Example:
[DEFINE]

DEF_1 :=      10.0   
DEF_2 := 
    2.0
DEF_3 := 1.5

MUL_1 := ${DEF_1}*${DEF_2}
MUL_2 := ${DEF_1}*${DEF_2}*${DEF_3}
MUL_3 := ${DEF_1}*3*${DEF_2}*${DEF_3}
MUL_4 := ${DEF_1}*-1.0e2*${DEF_2}*${DEF_3}
Comment 1 Arpad Lovassy CLA 2021-02-19 06:33:42 EST
https://github.com/eclipse/titan.EclipsePlug-ins/commit/94cfe6c52407a7a73ffea88f5d46b57be78d102b

https://github.com/eclipse/titan.EclipsePlug-ins/commit/c499c3fa8fed58a80dbffc86ef71dbd92ccab440

At this point Common lexer, parser syntatic and semantic check done.
Runtime lexer, parser done.
Runtime preparser syntax check OK

Missing:
Resolving multiplied macro values during preprocessing.
Comment 2 Denis Roy CLA 2021-04-23 11:10:15 EDT
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues