Page 1 of 1

HP-42S / Free42 Extension for Visual Studio Code

Posted: Sun Nov 04, 2018 5:17 pm
by Thomas Okken
An Extension for editing HP-42S / Free42 code in Visual Studio Code has been made available in the Visual Studio Marketplace: https://marketplace.visualstudio.com/it ... 42s-free42

I haven't tried it myself, but the previews look promising.

Written by Jochen Heilingbrunner; requires VSC 1.27 or later; free download.

Re: HP-42S / Free42 Extension for Visual Studio Code

Posted: Sun Nov 04, 2018 7:14 pm
by ijabbott
That looks useful, although I haven't tried it yet. I like the included command help.

I wonder how it handles double quotes and comment characters in strings? I don't really like the "Greedy comments" switch that grsbanks used for his online translator, although I understand his reasons for implementing it.

Re: HP-42S / Free42 Extension for Visual Studio Code

Posted: Tue Nov 06, 2018 2:05 pm
by Heilingbrunner
ijabbott wrote:
Sun Nov 04, 2018 7:14 pm
That looks useful, although I haven't tried it yet. I like the included command help.

I wonder how it handles double quotes and comment characters in strings? I don't really like the "Greedy comments" switch that grsbanks used for his online translator, although I understand his reasons for implementing it.
Hi ijabbott

i checked your concerns and debugged it.

Test:
" @ no comment " @ a comment
" # no comment " # a comment
" // no comment " // a comment

Thanks.

Re: HP-42S / Free42 Extension for Visual Studio Code

Posted: Wed Nov 07, 2018 11:45 pm
by ijabbott
Heilingbrunner wrote:
Tue Nov 06, 2018 2:05 pm
ijabbott wrote:
Sun Nov 04, 2018 7:14 pm
That looks useful, although I haven't tried it yet. I like the included command help.

I wonder how it handles double quotes and comment characters in strings? I don't really like the "Greedy comments" switch that grsbanks used for his online translator, although I understand his reasons for implementing it.
Hi ijabbott

i checked your concerns and debugged it.

Test:
" @ no comment " @ a comment
" # no comment " # a comment
" // no comment " // a comment

Thanks.
Great! But does it support double quotes inside strings?

Re: HP-42S / Free42 Extension for Visual Studio Code

Posted: Fri Nov 09, 2018 10:37 am
by Heilingbrunner
Hi,

i tried this example
02 "A "c" B"
which gives
'A "c" B'
F7 41 20 22 63 22 20 42

The problem are odd numbers of double quotes. This problem have many languages. The syntax highligthing gets a problem by odd number of double quotes.

Re: HP-42S / Free42 Extension for Visual Studio Code

Posted: Sun Nov 18, 2018 9:11 am
by Heilingbrunner
Now with debugged multi program support.
demo.gif
demo.gif (124.62 KiB) Viewed 5492 times

Re: HP-42S / Free42 Extension for Visual Studio Code

Posted: Wed Dec 19, 2018 5:43 pm
by Heilingbrunner
Now the extensions includes a decoder.
More details see https://marketplace.visualstudio.com/it ... 42s-free42.