diff options
| author | Yong He <yonghe@outlook.com> | 2025-02-05 12:32:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-05 12:32:56 -0800 |
| commit | 7911c9437333692db275d2dff41264f4c8023be8 (patch) | |
| tree | dd83ca191f47aed0bd512dfb9412038a7b7d3f0e /source/slang/slang-parser.h | |
| parent | 613f43a080f84e2680fb78dc4ed60a553da3b418 (diff) | |
Use two-stage parsing to disambiguate generic app and comparison. (#6281)
* Use two-stage parsing to disambiguate generic app and comparison.
* Typo fix.
* Update doc.
Diffstat (limited to 'source/slang/slang-parser.h')
| -rw-r--r-- | source/slang/slang-parser.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/slang-parser.h b/source/slang/slang-parser.h index bef03c9fe..9f9f4972a 100644 --- a/source/slang/slang-parser.h +++ b/source/slang/slang-parser.h @@ -25,6 +25,19 @@ Expr* parseTermFromSourceFile( NamePool* namePool, SourceLanguage sourceLanguage); +struct SemanticsVisitor; + +Stmt* parseUnparsedStmt( + ASTBuilder* astBuilder, + SemanticsVisitor* semantics, + TranslationUnitRequest* translationUnit, + SourceLanguage sourceLanguage, + bool isInVariadicGenerics, + TokenSpan const& tokens, + DiagnosticSink* sink, + Scope* currentScope, + Scope* outerScope); + ModuleDecl* populateBaseLanguageModule(ASTBuilder* astBuilder, Scope* scope); /// Information used to set up SyntaxDecl. Such decls |
