diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2026-05-31 20:58:42 +0200 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2026-05-31 20:58:42 +0200 |
| commit | 37ff7af18cd2e896506e6d228058204525b4a6eb (patch) | |
| tree | b45e29afac99b8e6eb21f5eaf040f640221220e8 /docs/c1/1-parse.md | |
| parent | 6794e27eac3e866aa2b24999e2027b301a52ebf2 (diff) | |
More proper shebang line parsing.
Diffstat (limited to 'docs/c1/1-parse.md')
| -rw-r--r-- | docs/c1/1-parse.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/c1/1-parse.md b/docs/c1/1-parse.md index 0fc0da5..4eb5776 100644 --- a/docs/c1/1-parse.md +++ b/docs/c1/1-parse.md @@ -590,6 +590,20 @@ Notes: further decoding of enclosed data. This is not so, since quoting is related to code evaluation, not decoding. + +## Shebang + +There is one final "syntax sugar" translation whose sole purpose is to allow a +shebang line at the start of a file: + + #!interpreter -> (#SHBANG & interpreter) + + #!interpreter argline -> (#SHBANG interpreter & argline) + +Under default settings, the decoder will allow this datum to appear once at the +beginning of a per-file decoding sequence, and simply discard it. + + <!-- ;; Local Variables: ;; fill-column: 80 |
