W3cubDocs

/D

dmd.parse

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source
parse.d
Documentation
https://dlang.org/phobos/dmd_parse.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/parse.d
PREC[TOK.max_] precedence;

Set operator precedence for each operator.

class Parser(AST): Lexer;
this(ref const Loc loc, AST.Module _module, const(char)[] input, bool doDocComment, DiagnosticReporter diagnosticReporter);

Use this constructor for string mixins.

Input
loc location in source file of mixin
RootObject parseTypeOrAssignExp();

Parse a Type or an Expression

Returns:
RootObject representing the AST
AST.Statement parseStatement(int flags, const(char)** endPtr = null, Loc* pEndloc = null);
Input
flags PSxxxx
Output
pEndloc if { ... statements ... }, store location of closing brace, otherwise loc of last token of statement
AST.Expression parsePrimaryExp();

Expression Parser

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_parse.html