[ET Trac] [Einstein Toolkit] #748: interface.ccl parser reports error for extra spaces after in function alias block

Einstein Toolkit trac-noreply at einsteintoolkit.org
Sun Feb 5 18:40:28 CST 2012


#748: interface.ccl parser reports error for extra spaces after in function alias
block
---------------------+------------------------------------------------------
  Reporter:  jtao    |       Owner:            
      Type:  defect  |      Status:  review    
  Priority:  major   |   Milestone:            
 Component:  Cactus  |     Version:            
Resolution:          |    Keywords:  CST parser
---------------------+------------------------------------------------------
Changes (by eschnett):

  * status:  new => review


Old description:

> E.g., if there are extra spaces after "LANGUAGE C" in the function
> alias block, the parser will report an missing "Language specification"
> error instead of discarding the extra spaces.
>
> PROVIDES FUNCTION MoLRegisterConstrainedGroup WITH \
>                   MoL_RegisterConstrainedGroup \
>                   LANGUAGE C

New description:

 E.g., if there are extra spaces after "LANGUAGE C" in the function
 alias block, the parser will report an missing "Language specification"
 error instead of discarding the extra spaces.

 PROVIDES FUNCTION MoLRegisterConstrainedGroup WITH \
                   MoL_RegisterConstrainedGroup \
                   LANGUAGE C

 }}}

--

Comment:

 Please test this patch:

 {{{
 Index: interface_parser.pl
 ===================================================================
 --- interface_parser.pl (revision 4788)
 +++ interface_parser.pl (working copy)
 @@ -746,7 +746,7 @@
        $funcname = $1;
        $provided_by = $2;

 -      if($provided_by =~ m/(.*)\s*LANGUAGE\s*(.+)/i)
 +      if($provided_by =~ m/(.*)\s*LANGUAGE\s*(.+)\s*/i)
        {
          $provided_by          = $1;
          $provided_by_language = "\U$2";

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/748#comment:1>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list