Working in a language called Progress. I'm trying to create a macro to replace a preprocessor constant with it's defined value.
/* example preprocessor definitions */
&scop constant_friendly_name constant_value
&scop num_days_in_week 7
&scop days_of_week Mon Tue Wed Thu Fri Sat Sun
/* the constant name is 1 word, followed by >= 1 space, then the constant value; the constant value *could* span lines if line-terminated with ~ but I am not concerned with that scenario as it's rarely used in the code I'm dealing with */
/* in code the constant is wrapped inside {& } like so: */
print "{&days_of_week}".
/* would like the macro to change this to */
print "Mon Tue Wed Thu Fri Sat Sun".
Is this possible with UltraEdit and if so, can someone give me some pointers? I'm using the 12.10a build.
Thanks!
/* example preprocessor definitions */
&scop constant_friendly_name constant_value
&scop num_days_in_week 7
&scop days_of_week Mon Tue Wed Thu Fri Sat Sun
/* the constant name is 1 word, followed by >= 1 space, then the constant value; the constant value *could* span lines if line-terminated with ~ but I am not concerned with that scenario as it's rarely used in the code I'm dealing with */
/* in code the constant is wrapped inside {& } like so: */
print "{&days_of_week}".
/* would like the macro to change this to */
print "Mon Tue Wed Thu Fri Sat Sun".
Is this possible with UltraEdit and if so, can someone give me some pointers? I'm using the 12.10a build.
Thanks!