uel
  1. uel
  2. UEL-10

Production for StringLiteral is not consistent with comments

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      10

      Description

      The current production for StringLiteral does not allow for the use single
      quotes inside double quotes, and vice versa, with escaping.

      I suggest changing the production for StringLiteral to the following:
      StringLiteral ::= '([^']|\'|\"|
      )*'

      "([^�] \' \�
      )*"

      an alternative form that may be clearer would be:
      StringLiteral ::= '([^']|(['"]))*'

      "([^�] (['"]))*"

        Activity

        Hide
        kchung added a comment -

        The grammar in the spec has been replaced by the RI's JAVACC grammar in EL 3.0, which does not seem to have this problem.

        Show
        kchung added a comment - The grammar in the spec has been replaced by the RI's JAVACC grammar in EL 3.0, which does not seem to have this problem.

          People

          • Assignee:
            Unassigned
            Reporter:
            markt_asf
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: