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.
HP-42S / Free42 Extension for Visual Studio Code
-
- Posts: 1107
- Joined: Tue May 02, 2017 5:48 pm
- Location: Netherlands
- Contact:
Re: HP-42S / Free42 Extension for Visual Studio Code
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.
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.
-
- Posts: 4
- Joined: Mon Nov 05, 2018 4:02 pm
- Location: Germany
Re: HP-42S / Free42 Extension for Visual Studio Code
Hi ijabbottijabbott wrote: ↑Sun Nov 04, 2018 7:14 pmThat 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.
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
Great! But does it support double quotes inside strings?Heilingbrunner wrote: ↑Tue Nov 06, 2018 2:05 pmHi ijabbottijabbott wrote: ↑Sun Nov 04, 2018 7:14 pmThat 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.
i checked your concerns and debugged it.
Test:
" @ no comment " @ a comment
" # no comment " # a comment
" // no comment " // a comment
Thanks.
-
- Posts: 4
- Joined: Mon Nov 05, 2018 4:02 pm
- Location: Germany
Re: HP-42S / Free42 Extension for Visual Studio Code
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.
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.
-
- Posts: 4
- Joined: Mon Nov 05, 2018 4:02 pm
- Location: Germany
Re: HP-42S / Free42 Extension for Visual Studio Code
Now with debugged multi program support.
-
- Posts: 4
- Joined: Mon Nov 05, 2018 4:02 pm
- Location: Germany
Re: HP-42S / Free42 Extension for Visual Studio Code
Now the extensions includes a decoder.
More details see https://marketplace.visualstudio.com/it ... 42s-free42.
More details see https://marketplace.visualstudio.com/it ... 42s-free42.