#16 ✓resolved
Douglas Creager

CSPM comments

Reported by Douglas Creager | January 12th, 2009 @ 10:55 PM | in 1.0-α4

The CSPM compiler doesn't currently support comments.

Comments and changes to this ticket

  • Douglas Creager

    Douglas Creager January 13th, 2009 @ 12:00 AM

    (from [fd9cdd7357a88d95e8b3400bf730bd3ed2675653]) Single-line comments

    The CSPM compiler now supports single comments:

    -- This is a comment

    a = 5 -- this is a number b = 6 -- so is this

    c = a + -- add them together

      b
    
    

    As shown in this example (which is in the test suite), a single-line comment counts as a newline. (If it didn't, the “a” and “b” variables wouldn't be properly defined, since a definition must end with a newline.)

    Lighthouse: [#16] http://github.com/hst/hst/commit...

  • Douglas Creager

    Douglas Creager January 13th, 2009 @ 12:04 AM

    (from [80bcfc675379f024f3f4c37770bb755c07e2ce8e]) Block comments

    The CSPM compiler now supports block comments:

    {-

    This is a comment.
    {-
      Block comments should nest.
    -}
    -- Technically line comments are good inside block comments, too,
    -- but this has no real meaning since "--" has no special meaning
    
    

    -- in a block comment. -}

    Lighthouse: [#16 status:resolved] http://github.com/hst/hst/commit...

  • Douglas Creager

    Douglas Creager January 13th, 2009 @ 12:08 AM

    • Milestone set to 1.0-α4
    • State changed from “new” to “resolved”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

An open-source refinement checker for the CSP process algebra.

People watching this ticket

Tags

Referenced by

Pages