Re: Accessing Symbol Table @ runtime
- From: "Jagmeet Singh Hanspal" <jagmeet.hanspal@xxxxxxxxx>
- Date: 14 Mar 2006 01:26:17 -0800
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
~
.
- Follow-Ups:
- Re: Accessing Symbol Table @ runtime
- From: Rob Thorpe
- Re: Accessing Symbol Table @ runtime
- From: Chris Dollin
- Re: Accessing Symbol Table @ runtime
- References:
- Accessing Symbol Table @ runtime
- From: Jagmeet Singh Hanspal
- Re: Accessing Symbol Table @ runtime
- From: Rob Thorpe
- Accessing Symbol Table @ runtime
- Prev by Date: Re: to draw a circle
- Next by Date: Re: Looking for smarter tools to compare the similarity between software
- Previous by thread: Re: Accessing Symbol Table @ runtime
- Next by thread: Re: Accessing Symbol Table @ runtime
- Index(es):
Relevant Pages
|