pascalnide icon indicating copy to clipboard operation
pascalnide copied to clipboard

Support other languages?

Open noncom opened this issue 8 years ago • 3 comments

The IDE looks very neat and promising. What do you think about supporting other languages? There are an existing variety of opensource Java interpreters for other languages like Scheme, JavaScript, Lua... what about providing a way to integrate them with the IDE?

Is it possible with other interpreters? I have looked at the source of Pascal NIDE and I see that the IDE itself is seemingly decoupled from the Pascal interpreter. However, I did not get into how much they rely on each other yet.

noncom avatar Jul 14 '17 15:07 noncom

Hello. The IDE separates from the interpreter. It only takes input and receives output. They communicate through the ProgramHandler interface. It provides input data input through the InOutListener interface.

tranleduy2000 avatar Jul 15 '17 07:07 tranleduy2000

About the Pascal interpreter, we will write code in the editor (EditorActivity). Then run the program and receive input and output through AbstractExecActivity. You can also integrate other interpreters like this.

tranleduy2000 avatar Jul 15 '17 07:07 tranleduy2000

Cool! I am going to try to experiment and integrate some other language (as an experiment). Maybe I will be able to figure out how to do it with the advise that you have provided. However it also feels that some documentation on how to use this mechanism (and how is it recommended to introduce the new interpreter module within the project) would be very good to have, if somebody should try that sort of extension.

noncom avatar Jul 17 '17 09:07 noncom