Discussions related to Visual Prolog
sbishop61
Posts: 17
Joined: 9 May 2021 9:55

prologSyntax, vipSyntax, vipParser and syntax packages

Post by sbishop61 »

I want to built a graphical view (and tree views) of classes, interfaces and type domains in a project, along with a .chm or similar. That will need me to be able to parse project file, pack and ph files, as well as class, interface and implimentation files.

I am trying to understand the use case, and differences, between the different packages: vip\prologSyntax, vip\vipSyntax, vip\vipParser and pfc\syntax.

TIA
User avatar
Thomas Linder Puls
VIP Member
Posts: 1471
Joined: 28 Feb 2000 0:01

Re: prologSyntax, vipSyntax, vipParser and syntax packages

Post by Thomas Linder Puls »

Nice 8-).

I will advise you to look at the vipPP demo project. Which is the program that auto-formats your source files. And the useSyntaxDemo project.

Regarding the packages you mention.
  • pfc\syntax contains common foundation for various things that has to do with syntax (not only Visual Prolog syntax)
  • vip\vipSyntax and vip\vipParser contains things that are related to Visual Prolog syntax as it is used in the compiler etc.
  • vip\prologSyntax is about programmatically constructing and writing Visual Prolog syntax (in a simpler way than constructing a real yTree). Some or our tools uses that package to construct COM wrapper code, xml serialization code, etc.
The vip\prologSyntax class does actually construct a real yTree and uses yTreePP for writing the files.
Regards Thomas Linder Puls
PDC