[ADMB Users] spaces/tabs

dave fournier davef at otter-rsch.com
Tue Sep 7 12:15:01 PDT 2010


It obviously should not be so difficult. It is simple to make it easier.
For example in the LOCAL_CALCs stuff in the flex input.
change


<DEFINE_DATA>^[ \t]LOCAL_CALCULATIONS |
<DEFINE_DATA>^[ \t]LOCAL_CALCS |
<DEFINE_DATA>^[ \t]LOC_CALCULATIONS |
<DEFINE_DATA>^[ \t]LOC_CALCS  {

to


<DEFINE_DATA>^[ \t]*LOCAL_CALCULATIONS |
<DEFINE_DATA>^[ \t]*LOCAL_CALCS |
<DEFINE_DATA>^[ \t]*LOC_CALCULATIONS |
<DEFINE_DATA>^[ \t]*LOC_CALCS  {

and same change to

<DEFINE_PARAMETERS>^[ \t]LOCAL_CALCULATIONS |
<DEFINE_PARAMETERS>^[ \t]LOCAL_CALCS |
<DEFINE_PARAMETERS>^[ \t]LOC_CALCULATIONS |
<DEFINE_PARAMETERS>^[ \t]LOC_CALCS  {

Other problems like this can be easily fixed by ediiting the lex input file.

However in my lex file the tab is already allowed in the TOP_OF_MAIN 
section.
MY lex input is

<IN_TOP_SECTION>^[ \t].*$ {



which should allow any combination of spaces and tabs at the beginning.







More information about the Users mailing list