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
a local clone.
dmd.parse
Compiler implementation of the
D programming language.
Authors:
License:
Source parse.d
Documentation https://dlang.org/phobos/dmd_parse.html
- 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
, booldoDocComment
, DiagnosticReporterdiagnosticReporter
); - Use this constructor for string mixins.
Input loc location in source file of mixin
- RootObject
parseTypeOrAssignExp
(); - Parse a Type or an ExpressionReturns:RootObject representing the AST
- AST.Statement
parseStatement
(intflags
, 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
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on (no date time)