aboutsummaryrefslogtreecommitdiff
path: root/c.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-01 21:57:44 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-01 22:04:00 -0400
commit30602c5a85a62fe983a9684d67ed0eecd9b405ae (patch)
tree4d0420d9bf8a29dcb647ad9b73e3d077adef0152 /c.bqn
parent35b312299a40ac6fc1725901e99b62239be2e5c9 (diff)
Add dzaima+reference version of the compiler
Diffstat (limited to 'c.bqn')
-rwxr-xr-xc.bqn3
1 files changed, 1 insertions, 2 deletions
diff --git a/c.bqn b/c.bqn
index bde12950..ef8427de 100755
--- a/c.bqn
+++ b/c.bqn
@@ -24,7 +24,7 @@ charSet←∾charGroups←⟨
" "∾tab ⍝ Whitespace
⍝ ⍝'" eliminated during tokenization
-bF‿bM‿bC‿bI‿bS‿bG‿bB‿bL‿bD‿bN‿bA‿bW←↕∘≠⌾∾charGroups
+bF‿bM‿bC‿bI‿bS‿bG‿bB‿bL‿bD‿bN‿bA‿bW←⊔/≠¨charGroups
vi←+´≠¨8↑charGroups
Tokenize←{
@@ -88,7 +88,6 @@ GenFn←{
nd←+´c←t=3⊑bB
t↩((vi+nVar+≠lits)+↕∘≠)⌾(c⊸/)t
⟨a,na⟩←Parse t
- bB
ops←⥊∾⟨
vi↑fntab
⍉3↑(Hex¨"20"‿"22")∾⌜↕nVar