[Introspector-developers] CVS update n3 parsing running, generation 4 is starting
Status: Beta
Brought to you by:
mdupont
|
From: James M. D. <mdu...@ya...> - 2002-12-15 12:27:05
|
Dear all,
I have a major update today,
Mario Luca and I have been testing the new GCC/Redland interface using
a ntriples format.
I have ported the first step of the fourth generation of the
introspector:
it reads n3 and then instanciates the introspector::node_* classes to
hold the data. Now this is not done, but it could be tested, and if you
want to start helping, now it the time!
In the cvs/introspector/process_file.pl
there is a simple command line program that will take a n3 file as a
parameter, and process it.
It has to be run in the root directory of the Introspector for now,
because we are still using this older (and bad) directory structure.
Here is an example :
./process_file.pl
TESTS/test_cpp/xml/tmp_testfunctionpointer.cpp_.tu_.bar_Sun_Dec_15_07_42_47_2002_50-dump.ntriple
that will read in the file produced by the c++ test example :
TESTS/test_cpp/Makefile
Here is the change log :
2002-12-15 13:14 mdupont
* CreateClasses.pm, TESTS/test_cpp/process_file.pl,
c_files/ChangeLog, c_files/Makefile.in, c_files/escaping.c,
c_files/tree-dump.c, c_files/tree-dump.h,
introspector/node_base.pm, introspector/node_field_decl.pm,
introspector/node_pointer_type.pm,
introspector/node_record_type.pm, introspector/node_type.pm,
tests/teststrings.c, tests/teststrings.s: first intergration
I added some functions to the node classes, manually for now,
later they will be added to the createclasses.pm
you will see them like this :
introspector/node_record_type.pm
if you test this, and notice other fields missing,
please add them in like this :
introspector-cvs/introspector/node_record_type.pm
#############
sub Setfncs
{
my $self = shift;
my $newval = shift;
return $self->{_fncs} = $newval;
};
# the functions
sub Setvfld
{
my $self = shift;
my $newval = shift;
return $self->{_vfld} = $newval;
};
# this is from cp/dump.c#dump_child ("vfld", TYPE_VFIELD (t));
mike
=====
James Michael DuPont
http://introspector.sourceforge.net/
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|