Current Page:
NeXtMidas Training
Option Trees
Lab 2
Solution
|
|
- Lab 2 (solution):
- You should have followed the steps on the previous pages to create a new option tree
called TRAIN. You could done it manually or have used the
OPTION/create command, e.g.
nM> option/create train /home/student/nmopts/nxm/train
nM> path add train
- To add and build the commands you should have done the following:
<Save counter.java to the prim area.>
<Save sayhello.mm to the mcr area.>
nM>
nM> update counter
Option tree (USER, SITE, UCL, etc): [] -> train
COUNTER Abbreviation: [COUNTER] ->
Support [M] -> P
Number of arguments [0] -> 2
Default 1 [] -> START=1
Default 2 [] -> END=10
nM>
nM>
nM> update sayhello
Option tree (USER, SITE, UCL, etc): [] -> train
SAYHELLO Abbreviation: [SAYHELLO] ->
Support [M] ->
Number of arguments [0] -> 1
Default 1 [] -> NAME="Anonymous"
nM>
nM>
nM> make all train
<Builds the option tree>
|
|
|