Skip to content

Commit

Permalink
Add commentary to clarify a rule
Browse files Browse the repository at this point in the history
  • Loading branch information
eernstg committed Nov 28, 2024
1 parent 62d384f commit e3af45d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ We introduce grammar productions of the form:
| 'const' '.' (<identifier> | 'new') <arguments> -- shorthand object creation
```

We also add `.` to the tokens that an expression statement cannot start with.
We also add `.` to the tokens that an expression statement cannot start with. *Note that the number `.123` does not start with the token `.` because all four characters are recognized as a single token. So we can still have expression statements starting with such a number.*

That means you can write things like the following (with the intended meaning as
comments, specification to achieve that below):
Expand Down

0 comments on commit e3af45d

Please sign in to comment.