www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13302] New: Inline ASM grammar is not left-associative

https://issues.dlang.org/show_bug.cgi?id=13302

          Issue ID: 13302
           Summary: Inline ASM grammar is not left-associative
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/iasm.html
                OS: All
            Status: NEW
          Keywords: iasm, spec
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com
            Blocks: 10233

Many rules on the inline ASM specification page look like this:

AsmLogOrExp:
    AsmLogAndExp
    AsmLogAndExp || AsmLogAndExp

This should probably be written as

AsmLogOrExp:
    AsmLogAndExp
    AsmLogOrExp || AsmLogAndExp

to properly document the fact that code like "mov RAX, 1 || 2 || 3;" will
compile. The same fix needs to be applied to many of the binary expression
rules on the inline ASM documentation.

--
Aug 15 2014