Changeset 1d71208 for libcfa

Timestamp:
Jun 23, 2021, 4:59:37 PM (4 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
27434e9
Parents:
6448f7d
Message:

Implementing new-array subscripting syntax, in which a[x,y,z] now means the same as ax,y,z.

This behaviour immediately replaces a syntax error that prohibits the -[-,-,-] syntax. The prior state showed that the C programs we compile don't use the C-compatible meaning of commas in subscripts.

This behaviour ultimately replaces the C-compatible interpretation in which a[x,y,z] means a[(x,y,z)] or, roughly, ({ x; y; a[z]; }).

(No files)

Note: See TracChangeset for help on using the changeset viewer.