[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] Reusing Photran parser ?
|
Still working on it and documenting results for future need.
From documentation ('dev-guide-specialized.pdf'), it seems I should use
VPG.
Chapter 2 is very informative, but one question remains: how to obtain
binding "across files", if a procedure is defined in a file and called
in another, how do I get VPG to resolve that binding ? Should it be done
manually ?
Any help would be greatly appreciated
nicolas
On 28/09/2017 19:52, Nicolas Anquetil wrote:
Hi,
I need to create a Fortran parser and I thought Photran could be a
good base to work from.
I already did a similar thing in the past with JDT parser and CDT
parser and they proved really useful.
Did anybody try this already ?
Does anybody have a suggestion where to start ?
For example, how should I call the parser on a TransactionUnit to get
its AST ?
I did find some possibilities, but they all require to use internal
classes such as FortranModelBuilder.setTranslationUnit() /
FortranModelBuilder.parse()
And for the ASTVisitor ?
I could extend ASTVisitor or implement IASTVisitor, but again both are
class/interface of internal packages ...
Any pointer would be welcome
thanks
nicolas
--
Nicolas Anquetil -- MCF (HDR)
Project-Team RMod