You are here: PSPad forum > English discussion forum > Re: Request : Code Explorer

Re: Request : Code Explorer

Goto Page: Previous1 2 3 Next

#11 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 09:41 | IP: IP Logged

I am not sure, but part of source code are line numbers?

Nice code. Where are the functions or procedures?

Edited 1 time(s). Last edit at 2015-05-22 09:42 by pspad.

Options: Reply | Quote | Up ^


#12 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 09:43 | IP: IP Logged

Hello,

Yes, line numbers are part of source code as this will run on that type of complier.

Options: Reply | Quote | Up ^


#13 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 09:44 | IP: IP Logged

TEST1 to 6 are functions

Function call is 'GOSUB'

NOTE : All with ':' include at end is function

Edited 1 time(s). Last edit at 2015-05-22 09:45 by pythonui.

Options: Reply | Quote | Up ^


#14 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 10:00 | IP: IP Logged

As I remember, line endings with : are labels and gosub is simple jump to label.

What you wrote before was basic with array and functions declaration. Now you switch into some prehistoric basic source code.

PSPad code exploere doesn't handle Basic source with numbered lines.

What do you want to show in Code explorer in this case? Labels?

Options: Reply | Quote | Up ^


#15 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 10:06 | IP: IP Logged

Yes

NOTE: This is one type of QBasic coding!publish.tbred.com

Edited 2 time(s). Last edit at 2015-05-22 10:13 by pythonui.

Options: Reply | Quote | Up ^


#16 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 10:26 | IP: IP Logged

This is a new QBasic code exploer (your source):

image

It works with numbered and unnumbered lines from QBasic, cause both cases are allowed

Options: Reply | Quote | Up ^


#17 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 10:32 | IP: IP Logged

Thats Great!

But I am not able to see variables and arrays there! smiling smiley

NOTE : I think it should be a part of PSPAD now! smiling smiley

Edited 1 time(s). Last edit at 2015-05-22 10:36 by pythonui.

Options: Reply | Quote | Up ^


#18 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 10:43 | IP: IP Logged

How can I make a difference of variable and arrays declaration and assignment if there is none?

Options: Reply | Quote | Up ^


#19 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 10:45 | IP: IP Logged

In the javascript code explorer it is there!

image

Edited 1 time(s). Last edit at 2015-05-22 10:48 by pythonui.

Options: Reply | Quote | Up ^


#20 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 10:54 | IP: IP Logged

pythonui:
In the javascript code explorer it is there!

Yes, because VAR something is declaration in JScript
Your LET something isn't declaration, but assignment and can be thousands times for same variable in your source
I can add DIM xxx into code explorer - it's declaration for arrays and variables.
If you use variables without declaration, they wont be listed in code explore.

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR