« first day (407 days earlier)      last day (1364 days later) » 

3:24 AM
Oh, about the guy I thought I got to do the student competition: turns out ambiguity was just being annoying... he said something along the lines of "I think I'll pass" which I interpreted as "passing" the competition (i.e. doing well), when he actually meant he'll pass up the opportunity.
@Feeds What?! A class? (At first, I thought that was Uriel)
 
4:15 AM
@Adám Can I export a Dyalog class so I can create an instance of it from C#?
 
 
3 hours later…
6:47 AM
@Pavel Yes, and once you've done so, further such exports require just a single button click!
 
6:58 AM
@Zacharý Yes, APL is actually being taught in universities. E.g. CS Prof. John Carroll includes APL in his CS320 class, Programming Languages, at San Diego State University. Example tasks: CARS, RUMMY, BRIDGE.
 
 
7 hours later…
2:12 PM
0
Q: Unable to parse APL Symbol using ANTLR

Sumit TyagiI am trying to parse APL expressions using ANTLR, It is sort of APL source code parser. It parse normal characters but fails to parse special symbols(like '←') expression = N←0 Lexer /* Lexer Tokens. */ NUMBER: (DIGIT)+ ( '.' (DIGIT)+ )?; ASSIGN: '←' ; DIGIT : [0-9] ; ...

 
 
2 hours later…
4:17 PM
0
Q: Unable to parse APL Symbol (like '←') using ANTLR

Sumit TyagiI am trying to parse APL expressions using ANTLR, It is sort of APL source code parser. It parse normal characters but fails to parse special symbols(like '←') expression = N←0 Grammar: grammar APL; translationunit : aplDocument? EOF ; aplDocument: NUMBER+ ; /* Lexer Tokens. ...

 
5:01 PM
@Adám could you take a look at this answer when you have some time?
 
5:14 PM
@J.Sallé Do you want a load of separate ideas or do you want me to golf it as much as I can and then tell you?
 
@Adám whatever you find best. I basically just ported a java solution I wrote to apl :p
 
5:30 PM
@J.Sallé I have to get off the train and go underground (no WiFi) now. The following code doesn't quite work, but should give you some ideas:
 r←g p
 r←⍬
 :For l :In 1+⍳≢p
     t←l⍴i←0
     :For c :In p
         i+←¯1 1 0⊃⍨'<>'⍳c
         t[m]←('01!'⍳c)⊃0 1,~t[m←l|i]1 1
     :End
     r,←∪t/l
 :End
 
@Adám okay, I'll take a look
 
 
3 hours later…
8:08 PM
@J.Sallé ⊂{t/⍵⊣⍵{t[m]←('01!'⍳⍵)⊃0 1,e,⍨~e←t[m←⍺|i⊢←i+¯1 1 0⊃⍨'<>'⍳⍵]}¨⍺⊣i←⊃t←⍬⍳⍺}¨1+⍳∘≢ needs each each input to be a character vector (not scalar) and keep boxing off, as it returns a nested result which just prints with additional spacing. To get a simple vector result, stick a on the very left.
 
@Adám what does i⊢← do?
NVM, modified assignment does different things to the scope than just assignment, I forgot that
 

« first day (407 days earlier)      last day (1364 days later) »