Results 1 to 10 of 36
Thread: SIOC Pre compiler
-
02-24-2009, 11:37 AM #1
- Join Date
- Feb 2009
- Location
- Preston, UK
- Posts
- 37
SIOC Pre compiler
Hi Guys,
Well im deep into SIOC now and while I love its functionality and the power it provides, I hate its syntax!
So im going to write a Precompiler that will allow us to write in a more friendly manor and then compile this into valid SIOC script
here are a few ideas I have,but I am looking for more ideas so I can make this a success!
intelliSense
Automatic VAR numbering
All Parameters to be declared at the top of the code,
then all scipt underneath, allowing you to keep Var decleration neat
Color coding of Functions, vars etc
So come on guys let meknow what really annoys you about SIOC
-
Post Thanks / Like - 2 Thanks, 0 Likes, 0 Dislikes
-
02-24-2009, 01:48 PM #2
Hi Chris
i personally would love to get to grips with SIOC, but time, age and computer skills sadly are not on my side. you are a professional programmer, so make it as simple as you can.
a lot of us didn't grow up in the 'computer generation', so what about a 'what you see is what you get' type of dropdown menu system with the ability to 'manipulate variables' in a simple manner (not suggesting that we are a simple bunch, just that a lot of us need some
help).
i was talking to John Rossiter (boeing737ng) the other day about exactly the same issue.
maybe you should have a chat with him.
good luck anyway and keep us posted.
and for those of you who dont know chris, here he is....
http://www.737ng.co.uk/chriswarner310109.jpg
sorry chris, couldn't resist it .......
regards ... ianMr. Ian. P. Sissons is hereby recognised as an Honorary Flight Sim Captain following his passing in February 2016. This is in recognition for his commitment to Flight Simulation.
www.mycockpit.org Featured Builder August 2008 www.737ng.co.uk
FS9/PROSIM737/CPFLIGHT/Lots of BU0836X's and a Beer Fridge
-
02-24-2009, 02:28 PM #3
For those of us who do not speak 'programming' it's an excellent idea. I really hope you succeed with this.
I might even be able to use SIOC with that add-on.Boeing Skunk Works
Remember...140, 250, and REALLY FAST!
We don't need no stinkin' ETOPS!
Powered by FS9 & BOEING
-
02-24-2009, 02:33 PM #4
- Join Date
- Jul 2013
- Posts
- 917
Chris/Mr Roper
In addition to agreeing with Ian (as always!) I am not certain how far your pre complier will go, however, existing SIOC error messages are totally inadequate. One great addition would be the facility to select a variable and then have all other uses of that variable highlighted in colour - I get fed up doing individual notepad "find" calls to try and track what is going on when a variable changes. I am not used to the anarchic programme flow
Regards and thanks
David
-
02-24-2009, 03:04 PM #5
An excellent idea! Go for it Chris! But don't wear yourself out (I know how fast these projects can grow out of proportions )!
I get fed up doing individual notepad "find" calls to try and track what is going on when a variable changes. I am not used to the anarchic programme flow
Try Notepad++! http://notepad-plus.sourceforge.net/uk/site.htm
Although it will not help with the programme flow. The find/replace facilites are great. Syntax highlightning, linenumbers and kinds of other good stuff is in this powerful editor!
Without it, I'm lost.
Chris:
Was thinking about writing a Perl script for renumbering variables,but I'm putting that on hold for now
-
02-24-2009, 03:25 PM #6
Great Idea ,
I could like a more visual programing , like drag and drop , could be???
think SIOC is great and very powerfull but very complicated for normal people like me. Thanks in advance for your work.
regards
-
02-24-2009, 06:12 PM #7
- Join Date
- Feb 2009
- Location
- Preston, UK
- Posts
- 37
Ian...Just wait until I see you next!!!! (only joking!)
My idea is that It will precompile the script and make sure It is valid..taking it from my interface into native SIOC.. It wont be a debugger im afraid (i.e. you wont be able to use it to debug values in real time
my idea is this so far, and I have this working in a very early stage
step 1
type "var" as you press space, a list of available types of var will appear..then when you select this it will show you all the available parameters for this type of var
all the "vars" will be at the top of the code with none of the inline script as is now
you will then be able to implement the script underneath and this will precompile into correct "SIOC"
an example might be
Code:Var VSdisplay, IOCARD_DISPLAY, 14, 5 Var CRSRdisplay, IOCARD_DISPLAY, 19, 3 Var MCPstatus, FSUIPC_IN, Offset $62BC, Length 4 MCPstatus { VSdisplay = 1000 }
also a lot of the syntax that is required by SIOC wont be required
My main problem with drag and drop style is that it is quite slow, whereas a intilsense type approach is normally much faster to write.
Does this make sense, and do people think it would help?
-
02-24-2009, 06:28 PM #8
Brilliant !! I can't wait for something to make it easier to facilitate programming SIOC.
Regards......................Brian W.
-
02-24-2009, 06:31 PM #9
- Join Date
- Jul 2013
- Posts
- 917
Chris
Yes please, this would be a great improvement and the variables list at the top reminds me of programming in C back in 1982, though sadly mostly now forgotten!
Thanks again
David
-
02-24-2009, 07:05 PM #10
Hi guys, its 2009 now (!), global variables should be avoided in programming as much as possible, it is considered bad practise nowadays...
But more serious, I do not think a SIOC pre compiler is a good approach. Personally I do not need that at all ...
The SIOC language already is an application language, particularly targeted to building cockpits, so why do you want to abstract from that??? And more important, the 'event driven' mechanisms in SIOC will be very difficult to abstract from.
I think it is better to try to understand the SIOC language, just spent some time, it is not as difficult as it seems. My website may be of help:
http://www.lekseecon.nl/howto.html. Start with simple examples.
And if it still does not work, for instance because you do not understand the syntax of the SIOC language, so you have difficulty to program using a text editor, you could also fall back at the GUI interface of SIOC.
regards,
nico
Similar Threads
-
Sioc / PM
By mpl330 in forum OpenCockpits General DiscussionReplies: 6Last Post: 02-07-2010, 01:26 PM -
CNC compiler problem
By davek in forum Westozy's Mechanical EngineeringReplies: 1Last Post: 01-01-2010, 09:23 AM -
Help with SIOC please?
By Jake 747 400 in forum General Builder Questions All Aircraft TypesReplies: 13Last Post: 11-20-2009, 07:00 PM -
SIOC Help
By CessnaGuy in forum I/O Interfacing and HardwareReplies: 5Last Post: 10-25-2009, 10:00 AM -
SIOC for MIP?
By HondaCop in forum I/O Interfacing Hardware and SoftwareReplies: 17Last Post: 07-21-2009, 07:48 AM
Search Beautiful Girls from your town for night
Offsets for Trottle