A Trade pre-processor by Salil V Gangal


'Trade' does not contain the following functionality:
1. Looping
2. Multi-line comments
3. Command-line parameter substitution

The trade pre-processor 'tradepp' introduces these missing
functionalities to a certain degree.

Loop
====
The loop functionality is for executing certain lines of code again
and again. While executing 'some' change takes place with
each repetition. At present the loop functionality in tradepp is for
two types of loops:

1) Looping for a fund (security) at a time within a fund-family.
Here certain lines of code are repeated and for each
repetition, the next fund in the fund-family is used.

2) Looping for a counter, with start and end values and an
increment value.
Here certain lines of code are repeated. For the first
repetition, the counter value is set to start value. For each
successive repetition, the counter value is incremented by
the given increment value. This continues until the counter
value reaches the end value.


Multi-line Comments
===============
The multi-line functionality simply converts all the text within a
pair of /* and */ into single-line comments. I tend to write a lot of
comments and found it very irritating writing a ; at the beginning
of each and every line. Also, when I want to skip execution of a
chunk of code, I found is easier to write /* and */ rather than
going to each line and puttiing a ; at the beginning.

Command-line parameter substitution
===========================
The command-line parameter substitution is similar to what's
present in 'tradefr' program of Steve Munger.

Download mfv.zip 08/24/2001

Last updated 08/24/2001