Welcome to APLNext Sign in | Join | Help
in
Community Website
Blogs Forums

unexpected token <endblock> - Error when building VisualApl project

Last post 11-29-2006, 9:13 PM by Fred.Waid. 1 replies.
Sort Posts: Previous
  • unexpected token <endblock> - Error when building VisualApl project

     11-22-2006, 1:53 PM

    I added a new class in my project to put general utility routines from APL+Win.   Below is the text from the class definition.   The function VTM runs fine in Cielo Explorer.  All the {}s are balanced.  I cannot make the build error "unexpected token <endblock>" go away.   The error line number is the last line of the code, where the closing  } is located.    I wonder if some combination of characters in the converted APL+Win code makes VisualApl think there is an open block?

    ___________________________________________________________

    #region Using directives

    using System;

    using System.Collections.Generic;

    using System.Text;

    using System.Runtime.InteropServices;

    #endregion

    namespace APLN_KregCL_1

    {

    [Guid("903C726E-EF0F-45c4-A99E-845742DAD96F")]

    [ClassInterface(ClassInterfaceType.AutoDual)]

    [ProgId("Kreg.GENUtils")]

    class KregGEN_UTILS

    {

    ZD VTM A

    {

    ⍝ locals: B;BX;CV;CX;R;S;SB;⎕IO

    ⍝ ∼∼∼ This is a WinCore.W3 function. Make changes in ∼∼∼

    ⍝ Copyright (C) 1983 KREG Corporation

    ⍝ Vector To Matrix conversion; broken out and using conditional looping

    ⍝ to avoid WS FULLs

    ⎕IO1

    :IF ⎕monadicD←' ' ⋄ :ENDIF

    S←⍴A←,ABAD

    ⍝ Append a trailing D delimiter if not already there

    :IF 0S

    :IF B[S] ⋄ S←⍴AA,DBB,1:ENDIF

    :ENDIF

    Z←(∼B)/AA⎕EX 'A'

    SB0R←⍬

    ⍝ Get indices of delimiters D. Process in 1 step if vector size <32000

    ⍝ otherwise loop to get indices.

    :IF S<100000BB/⍳S ⋄ →EN1:ENDIF

    LP1:

    CV←⍳CX10000S-SBBXB[SB+CV] ⋄ RR,SB+BX/CV

    :IF S>SBSB+CX ⋄ →LP1:ENDIF

    BRR⎕EX 'BX CV CX SB'

    ⍝ Form expansion vector to add trailing blanks, S←shape for result

    EN1:

    B←¯1+B-01B

    S←(⍴B),⌈/B,0A←,B.≥⍳S[2]

    ZA\ZA⎕EX 'A' ⋄ ZSZ

    } // VTM

    } //KregGEN_UTILS

    } //namespace APLN_KregCL_1

  • Re: unexpected token <endblock> - Error when building VisualApl project

     11-29-2006, 9:13 PM

    George,

    This is fixed now in the RC2.4

    It was a problem with the way we dealt with the comments between the class and the namespace closing braces. 

    Glad you found this one!

    Fred

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems