Menu

A block comment restricted to a single line

Craio
2008-05-15
2012-11-13
  • Craio

    Craio - 2008-05-15

    I'm trying to make a custom language, but the language (FastStep script) has the following problem to implement:
    The script language uses '{' to indicate the start of a line comment and has 2 different ways of defining a block comment:
    /* ...*/ and {...}
    So the symbol for a line comment '{' is the same as that of the start of a block comment...
    Difference between the block comments is that {...} is restricted to a single line
    Example:
    1)
    {<should be comment till end of line>
    2)
    {<comment>} <no comment>
    3)
    {<comment>
    <no comment>

    So in short: is it possible to make the line comment stop at the '}' and at the end of a line too?

     
    • Alexander Iljin

      Alexander Iljin - 2008-05-15

      Please, complain to the FastStep script developers for having such a retarded comment design. (Where is it from, byt the way?)
      You can still use "{" to only write line comments.

       
      • Craio

        Craio - 2008-05-16

        Yeah, i know that it's retarded.
        FastEnd is a program created by Philips that uses its own scriptlanguage used to control elektronics in a test setup.