Data update

This commit is contained in:
Ingy döt Net 2024-07-13 15:19:22 -07:00
parent 29a5eea0d4
commit 5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions

View file

@ -0,0 +1,2 @@
val x = "little"
writeln "Mary had a {{x}} lamb."

View file

@ -0,0 +1 @@
writeln "Lamb count: {{x : 7}}"

View file

@ -0,0 +1,3 @@
writeln "Partial lamb count: {{x : r2 : 10}}"
# rounds to 2 decimal places, then aligns to 10 code points
# (hopefully no partial lambs)

View file

@ -0,0 +1,3 @@
var extra := 'little';
var formatted := $'Mary has a {extra} lamb.';
Print(formatted);

View file

@ -1,5 +1,3 @@
(phixonline)-->
<span style="color: #004080;">string</span> <span style="color: #000000;">size</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"little"</span>
<span style="color: #004080;">string</span> <span style="color: #000000;">s</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">sprintf</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"Mary had a %s lamb."</span><span style="color: #0000FF;">,{</span><span style="color: #000000;">size</span><span style="color: #0000FF;">})</span>
<span style="color: #0000FF;">?</span><span style="color: #000000;">s</span>
<!--
string size = "little"
string s = sprintf("Mary had a %s lamb.",{size})
?s -- or printf(1,".."".."), probably with a \n

View file

@ -0,0 +1 @@
$"Mary had a _ lamb." "little"