View source code
Display the source code in dmd/parse.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Variable dmd.parse.precedence
Set operator precedence for each operator.
immutable(dmd .parse .PREC[135]) precedence
= [EXP .type:PREC .expr, EXP .error:PREC .expr, EXP .objcClassReference:PREC .expr, EXP .typeof_:PREC .primary, EXP .mixin_:PREC .primary, EXP .import_:PREC .primary, EXP .dotVariable:PREC .primary, EXP .scope_:PREC .primary, EXP .identifier:PREC .primary, EXP .this_:PREC .primary, EXP .super_:PREC .primary, EXP .int64:PREC .primary, EXP .float64:PREC .primary, EXP .complex80:PREC .primary, EXP .null_:PREC .primary, EXP .string_:PREC .primary, EXP .arrayLiteral:PREC .primary, EXP .assocArrayLiteral:PREC .primary, EXP .classReference:PREC .primary, EXP .file:PREC .primary, EXP .fileFullPath:PREC .primary, EXP .line:PREC .primary, EXP .moduleString:PREC .primary, EXP .functionString:PREC .primary, EXP .prettyFunction:PREC .primary, EXP .typeid_:PREC .primary, EXP .is_:PREC .primary, EXP .assert_:PREC .primary, EXP .halt:PREC .primary, EXP .template_:PREC .primary, EXP .dSymbol:PREC .primary, EXP .function_:PREC .primary, EXP .variable:PREC .primary, EXP .symbolOffset:PREC .primary, EXP .structLiteral:PREC .primary, EXP .compoundLiteral:PREC .primary, EXP .arrayLength:PREC .primary, EXP .delegatePointer:PREC .primary, EXP .delegateFunctionPointer:PREC .primary, EXP .remove:PREC .primary, EXP .tuple:PREC .primary, EXP .traits:PREC .primary, EXP .default_:PREC .primary, EXP .overloadSet:PREC .primary, EXP .void_:PREC .primary, EXP .vectorArray:PREC .primary, EXP ._Generic:PREC .primary, EXP .dotTemplateInstance:PREC .primary, EXP .dotIdentifier:PREC .primary, EXP .dotTemplateDeclaration:PREC .primary, EXP .dot:PREC .primary, EXP .dotType:PREC .primary, EXP .plusPlus:PREC .primary, EXP .minusMinus:PREC .primary, EXP .prePlusPlus:PREC .primary, EXP .preMinusMinus:PREC .primary, EXP .call:PREC .primary, EXP .slice:PREC .primary, EXP .array:PREC .primary, EXP .index:PREC .primary, EXP .delegate_:PREC .unary, EXP .address:PREC .unary, EXP .star:PREC .unary, EXP .negate:PREC .unary, EXP .uadd:PREC .unary, EXP .not:PREC .unary, EXP .tilde:PREC .unary, EXP .delete_:PREC .unary, EXP .new_:PREC .unary, EXP .newAnonymousClass:PREC .unary, EXP .cast_:PREC .unary, EXP .throw_:PREC .unary, EXP .vector:PREC .unary, EXP .pow:PREC .pow, EXP .mul:PREC .mul, EXP .div:PREC .mul, EXP .mod:PREC .mul, EXP .add:PREC .add, EXP .min:PREC .add, EXP .concatenate:PREC .add, EXP .leftShift:PREC .shift, EXP .rightShift:PREC .shift, EXP .unsignedRightShift:PREC .shift, EXP .lessThan:PREC .rel, EXP .lessOrEqual:PREC .rel, EXP .greaterThan:PREC .rel, EXP .greaterOrEqual:PREC .rel, EXP .in_:PREC .rel, EXP .equal:PREC .rel, EXP .notEqual:PREC .rel, EXP .identity:PREC .rel, EXP .notIdentity:PREC .rel, EXP .and:PREC .and, EXP .xor:PREC .xor, EXP .or:PREC .or, EXP .andAnd:PREC .andand, EXP .orOr:PREC .oror, EXP .question:PREC .cond, EXP .assign:PREC .assign, EXP .construct:PREC .assign, EXP .blit:PREC .assign, EXP .addAssign:PREC .assign, EXP .minAssign:PREC .assign, EXP .concatenateAssign:PREC .assign, EXP .concatenateElemAssign:PREC .assign, EXP .concatenateDcharAssign:PREC .assign, EXP .mulAssign:PREC .assign, EXP .divAssign:PREC .assign, EXP .modAssign:PREC .assign, EXP .powAssign:PREC .assign, EXP .leftShiftAssign:PREC .assign, EXP .rightShiftAssign:PREC .assign, EXP .unsignedRightShiftAssign:PREC .assign, EXP .andAssign:PREC .assign, EXP .orAssign:PREC .assign, EXP .xorAssign:PREC .assign, EXP .comma:PREC .expr, EXP .declaration:PREC .expr, EXP .interval:PREC .assign];
Used by hdrgen
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.