These are chat archives for rpgleparser/rpgleparser

2nd
Apr 2015
ryaneberly
@ryaneberly
Apr 02 2015 03:52
Agree with last bit. I don't see an issue with using the parser for the basis of an interpreter. You could wire a lot of functionality pretty quickly using JT400/Jtopen. I played around with interpreting the FSpec and chain very briefly. it is doable, without converting to SQL - though automating transformation would be impressive.
Liam Allan
@WorksOfLiam
Apr 02 2015 13:02
JT400/Jtopen is the plan. I have most functionality down for C specs but I've implemented the F spec to read from text files - as I stupidly made it in C#
Luckily, Java and C# are somewhat similar so I should be able to copy most of the current code base and change minimal pieces
Liam Allan
@WorksOfLiam
Apr 02 2015 13:22
lol I started a scripting language in RPG when I started here like 9 months ago
Could my life get anymore boring
messy code my lord
ryaneberly
@ryaneberly
Apr 02 2015 13:51
That's great. building a REPL with something like that would be impressive.
Liam Allan
@WorksOfLiam
Apr 02 2015 13:55
It's messy, it was probably the second thing I ever wrote. The first thing was an CGI upload form using our framework (in RPG)
I want to re-write it but I can't stand using 5250 at home
Liam Allan
@WorksOfLiam
Apr 02 2015 14:00
You'd pass it in scripts like this, looks terrible as well
dsply: start        : LALLAN                

set: 2 : 5                                  
dsply: Answer = %2% : LALLAN                

rem: 2 : %2% : 1                            
dsply: Change = %2% : LALLAN                
ife: %2% : 0                                
    goto: 13                                
end                                         
goto: 6                                     

dsply: END : LALLAN                         
close
ryaneberly
@ryaneberly
Apr 02 2015 15:39
nice. :-). lol.
I meant that a REPL which can run outside the iseries/5250 would be great.
ryaneberly
@ryaneberly
Apr 02 2015 15:47
interpretation is a step away from recompiling into another language. Though it's still a ways away from doing it beautifully.
Liam Allan
@WorksOfLiam
Apr 02 2015 20:45
Evening guys
Yeah, I know a fair amount about .NET IL but nothing about JVM