przemo has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm writing LaTeX report about structural model of some optimization problem. I use C-like structures, e.g.
struct vertex_t { int id; double lon; double lat; } struct arc_t { vertex from; vertex to; double cost; } struct graph_t { vertex_t[] v; arc_t[] a; }
As I use PerlTeX already, I want to use Perl to validate my fragments of programs, e.g. a module that would recognize and remember declarations
int i; graph_t g;
and could validate -- to the level of structures elements and types used expressions like:
g.a[i].from;Before I start coding myself: has anyone heard of something similar on CPAN? Doesn't have to be exactly C-like language, although dot-notation is preferred.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: C-like structures parsing and validation
by jettero (Monsignor) on Nov 16, 2009 at 13:18 UTC | |
by przemo (Scribe) on Nov 16, 2009 at 13:31 UTC | |
by przemo (Scribe) on Nov 16, 2009 at 15:13 UTC | |
by przemo (Scribe) on Nov 24, 2009 at 18:28 UTC | |
|
Re: C-like structures parsing and validation
by jmcnamara (Monsignor) on Nov 17, 2009 at 06:14 UTC | |
by przemo (Scribe) on Nov 17, 2009 at 12:17 UTC |