If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Front end adjustments for parity with 5 May 2008 grammar

RESOLVED FIXED

Status

Tamarin
Self-hosting compiler (ESC)
RESOLVED FIXED
10 years ago
9 years ago

People

(Reporter: Lars T Hansen, Unassigned)

Tracking

Details

Attachments

(2 attachments)

(Reporter)

Description

10 years ago
Rather a lot of small changes to the front end to bring it up to parity with the May 5 grammar.  Many of the new syntactic structures supported do not have back-end support, but in most cases intelligible errors are thrown.

New in this patch:
  - removed support for 
    - triple-quoted strings
    - xor operator (^^)
  - added support for 
    - forward declarations of types, classes, interfaces
    - 'like'
    - 'this generator' and 'this function'
    - let block statement
    - slice expressions
    - spread expressions, spread patterns, spread types
    - array comprehensions
    - type application
    - yield without an expression
    - ... without an identifier
    - full object/array initializer syntax (a lot of hair here)
    - function types
    - super() statement in constructors
    - strings as literal namespace values

Many bugs were fixed in the process.  Performance is generally better, though early namespace resolution has introduced some performance regressions too.

Note that there is no definer support here; the code performs namespace resolution but the namespace must be defined before the reference, and no values are tracked across files yet.
(Reporter)

Comment 1

10 years ago
Created attachment 320406 [details] [diff] [review]
Patch, source only
Attachment #320406 - Flags: review?(jodyer)
(Reporter)

Comment 2

10 years ago
Created attachment 320407 [details]
Patch, source and object alike

Updated

10 years ago
Attachment #320407 - Flags: review+
(Reporter)

Comment 3

10 years ago
Pushed: 544:889858474f5d
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
(Reporter)

Updated

9 years ago
Attachment #320406 - Flags: review?(jodyer)
(Reporter)

Comment 4

9 years ago
Comment on attachment 320406 [details] [diff] [review]
Patch, source only

Review not relevant on this, Jeff reviewed the other patch.
You need to log in before you can comment on or make changes to this bug.