Skip to content

Commit

Permalink
fun
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Jan 18, 2025
1 parent c97edd9 commit cd78024
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/apple-by-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,10 @@ is equivalent to

Identifiers may be latin or greek characters, or a single character from the
mathematical greek or mathematical latin unicode block, optionally followed by
some subscript alphanumeric characters. The single-character lambda `Ξ»` is reserved. `∫`, `𝛻`,
some subscript alphanumeric characters. `βˆ‚` may appear at the beginning of multi-character identifiers or on its own. The single-character lambda `Ξ»` is reserved. `∫`, `𝛻`,
and `βˆ‡` are also identifiers but may not be followed by a subscript.

Thus `pxs`, `aβ‚™`, `sn₁`, `𝐢`, `Ο†s`, `πœ‰`, and `πœŒβ‚€` are valid identifiers but `πœ‰s` is not.
Thus `pxs`, `aβ‚™`, `sn₁`, `𝐢`, `Ο†s`, `βˆ‚f`, `πœ‰`, and `πœŒβ‚€` are valid identifiers but `πœ‰s`, `πœ‰βˆ‚`, and `fβˆ‚` are parsed as application of one identifier to another.

### Vulgar Fractions

Expand Down
18 changes: 12 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -772,13 +772,16 @@ <h3 id="matrix-dimensions">Matrix Dimensions</h3>
<h3 id="identifiers">Identifiers</h3>
<p>Identifiers may be latin or greek characters, or a single character
from the mathematical greek or mathematical latin unicode block,
optionally followed by some subscript alphanumeric characters. The
single-character lambda <code>λ</code> is reserved. <code>∫</code>,
<code>𝛻</code>, and <code>βˆ‡</code> are also identifiers but may not be
followed by a subscript.</p>
optionally followed by some subscript alphanumeric characters.
<code>βˆ‚</code> may appear at the beginning of multi-character
identifiers or on its own. The single-character lambda <code>Ξ»</code> is
reserved. <code>∫</code>, <code>𝛻</code>, and <code>βˆ‡</code> are also
identifiers but may not be followed by a subscript.</p>
<p>Thus <code>pxs</code>, <code>aβ‚™</code>, <code>sn₁</code>,
<code>𝐢</code>, <code>Ο†s</code>, <code>πœ‰</code>, and <code>πœŒβ‚€</code> are
valid identifiers but <code>πœ‰s</code> is not.</p>
<code>𝐢</code>, <code>Ο†s</code>, <code>βˆ‚f</code>, <code>πœ‰</code>, and
<code>πœŒβ‚€</code> are valid identifiers but <code>πœ‰s</code>,
<code>πœ‰βˆ‚</code>, and <code>fβˆ‚</code> are parsed as application of one
identifier to another.</p>
<h3 id="vulgar-fractions">Vulgar Fractions</h3>
<p>Unicode vulgar fractions are considered float literals:</p>
<pre><code> &gt; β…š
Expand Down Expand Up @@ -8443,6 +8446,7 @@ <h3 id="sample-normal-distribution">Sample Normal Distribution</h3>
processEnvironments: true
},
displayAlign: 'center',
messageStyle: 'none',
CommonHTML: {
linebreaks: {
automatic: true
Expand Down Expand Up @@ -16075,6 +16079,7 @@ <h3 id="image-processing">Image Processing</h3>
processEnvironments: true
},
displayAlign: 'center',
messageStyle: 'none',
CommonHTML: {
linebreaks: {
automatic: true
Expand Down Expand Up @@ -23758,6 +23763,7 @@ <h3 id="random-walks">Random Walks</h3>
processEnvironments: true
},
displayAlign: 'center',
messageStyle: 'none',
CommonHTML: {
linebreaks: {
automatic: true
Expand Down
2 changes: 1 addition & 1 deletion src/L.x
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $sub = [$subscript $digitsubscript]
@follow_char = [$letter $digit \_]

-- TODO: Mβ‚‚,β‚‚ without the space
@name = ($letter#[Λλ] @follow_char* $sub* | $mathgreek $sub* | $mathlatin $sub* | ∫ | 𝛻 | βˆ‡) [′″‴⁗]?
@name = ([$letter βˆ‚]#[Λλ] @follow_char* $sub* | $mathgreek $sub* | $mathlatin $sub* | ∫ | 𝛻 | βˆ‡) [′″‴⁗]?

@exp = e\-?$digit+
@float = ($digit+\.$digit+@exp? | $digit+@exp)
Expand Down

0 comments on commit cd78024

Please sign in to comment.