HP-42S / Free42 Extension for Visual Studio Code

General discussion about calculators, SwissMicros or otherwise
Post Reply
Thomas Okken
Posts: 1098
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

HP-42S / Free42 Extension for Visual Studio Code

Post 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.
User avatar
ijabbott
Posts: 253
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

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

Post 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.
Heilingbrunner
Posts: 4
Joined: Mon Nov 05, 2018 4:02 pm
Location: Germany

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

Post 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.
User avatar
ijabbott
Posts: 253
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

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

Post 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?
Heilingbrunner
Posts: 4
Joined: Mon Nov 05, 2018 4:02 pm
Location: Germany

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

Post 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.
Heilingbrunner
Posts: 4
Joined: Mon Nov 05, 2018 4:02 pm
Location: Germany

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

Post by Heilingbrunner »

Now with debugged multi program support.
demo.gif
demo.gif (124.62 KiB) Viewed 5468 times
Heilingbrunner
Posts: 4
Joined: Mon Nov 05, 2018 4:02 pm
Location: Germany

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

Post by Heilingbrunner »

Now the extensions includes a decoder.
More details see https://marketplace.visualstudio.com/it ... 42s-free42.
Post Reply