Skip to content

Commit

Permalink
Update #72: C Identifiers can't begin with numbers or underscores
Browse files Browse the repository at this point in the history
We agreed on a special treatment of leading numbers which retains injectivity.
  • Loading branch information
Nate-Bragg-Bose committed Apr 20, 2017
1 parent f72eac9 commit d60eba6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tickets/open/72
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Title: C Identifiers can't begin with numbers or underscores

In both cases Smudge should detect that it will emit such an identifier in the
For numbers Smudge should prepend an empty namespace (actually mapped to the
empty string, not _0__), with the corresponding join underscores. This retains
injectivity because the empty output string is injective as there is no way to
introduce it.

For underscores Smudge should detect that it will emit such an identifier in the
backend, and either emit a warning, or fail with an error.

There should be an escape valve flag that lets the user prefix ALL names (it
Expand Down

0 comments on commit d60eba6

Please sign in to comment.