| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Introduce a new non-terminal "SimpleLiteral". Only SimpleLiterals can be
types.
|
| |
|
|
|
|
|
| |
This mimics scalac's behavior (but not the official syntax; in fact the
official syntax seems to be ambiguous.
|
|
|
|
| |
Brings in line with Scala 2 spec.
|
|
|
|
| |
Implements #499
|
|
|
|
|
|
|
|
|
|
| |
Problem 1: The parser did not accept them. It has to accept a "RefinedType" as an ascription,
not a "WithType" (as it did before), or even a "SimpleType" (as speced in the SyntaxSummary).
Problem 2: Annotations are always typed as expressions. The annotations in question were typed
as patterns before.
Tests in Patterns.scala and in the Dotty compiler itself.
|
|
|
|
| |
quasi-quotes.
|
|
|
|
| |
… and some to grammar.
|
|
|
|
|
|
| |
(1) Added markup parsers
(2) Syntax change relating to modifiers and annotations of primary constructor
(3) Review of parsing with bug fixes and simplifications.
|
|
|
|
|
|
|
|
| |
Synced parser and SyntaxSymmary.
Parser now produces untyped trees that need to be desugared further.
Also some tweaks to position to make it work well.
This is a first version.
|
|
|