Re: Accessing Symbol Table @ runtime



Thankx Rob,

This project is basically a CLI. Now we are planning to have a GUI too
(I have a working version of that in QT).
What language would u suggest? It will have to communicate with a
driver and proabably use TCP/IP too.
And I cannot get too extravagant as per the resources are concerned.

We had static tables, in our previous implementation, but that code was
soo huge that we wrote C-Code-generators.
The previous code was like:
$./Executable a=10, b=20, c=30

Inside the Executable:
---------------------------------------------------------------
int main(int argc, char*argv[])
{
switch(whichVariable(argv[x]))
{
case a:
var11.var23 = getData(argv[x]);
case b:
var1.var2->var3[6].var67 = getData(argv[x]);
...
...
...
...
default:
printf("Invalid");
}

}
---------------------------------------------------------------


As you can see above, various pseudo-variables(a,b,c...) are mapped to
actual variables inside the code.
This was one way we did it, but it led to a huge amount of code.
All I have to do is parse what the user is giving at the input.
Now, in our case, the user has the ability to give the actual variable
names instead of a,b,c ...
And i want to use that input, directly or indirectly, to be able to
access that particular variable.
If somehow, I can do that...

~
Jagmeet
~

.



Relevant Pages

  • Re: Newbie Needs Ada Advice
    ... the "right" thing, and it seems to me like Ada is, in theory, a great ... text-to-whatever-type conversion when you read stuff from the GUI back ... "right" language to me for most of what my objectives are. ... Ada as the "engine" for my program, and somehow use Java to create the ...
    (comp.lang.ada)
  • Re: Newbie Needs Ada Advice
    ... the "right" thing, and it seems to me like Ada is, in theory, a great ... text-to-whatever-type conversion when you read stuff from the GUI back ... "right" language to me for most of what my objectives are. ... Ada as the "engine" for my program, and somehow use Java to create the ...
    (comp.lang.ada)
  • Re: GUI vs: CLI (was: Shell command in VB6)
    ... > this aspect of cli apps, but it does not apply to me" ?). ... between GUI and CLI is actually fairly slight. ... how many of us programmers would ...
    (comp.programming)
  • Re: Still clinking to Java?
    ... I was toying with saving effort by making the C version a DLL and redoing the GUI in my portable Cello GUI. ... But there would be new work on the engine, and just trying to get a clean compile of the C version under VC++ I saw enough to remind me I would rather work in Lisp. ... IDE investments can simply be skipped. ... I just don't want to switch language _at that point_ and recode ...
    (comp.lang.lisp)
  • Re: Where is Python in the scheme of things?
    ... There are a number of free and commercial IDEs and GUI tool kits, ... GUI code in Python than in VB etc. ... I realize that these programming packages are quite expensive now while Python is free. ... It's a more modern language than the above. ...
    (comp.lang.python)