[ADMB Users] spaces/tabs

Johnoel Ancheta johnoel at hawaii.edu
Tue Sep 7 13:13:45 PDT 2010


  Added changes to revision 757.

On 9/7/10 9:15 AM, dave fournier wrote:
> 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.
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users




More information about the Users mailing list