A dumb, hand made, external parser for Plastic and Semantic only capable of creating "declaration trees" for 2 given files.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Properties
sample
App.config
Program.cs
README.md
codeparser.csproj
codeparser.sln

README.md

external-parser-sample

A dumb, hand made, external parser for Plastic and Semantic only capable of creating "declarations trees" for 2 given files.

This sample code explains how to create a skeleton external parser to be used by Plastic SCM and SemanticMerge/SemanticDiff.

It is only able to parse the 2 files under the "sample" directory. It has a hardcoded "declaration tree" for each of the files.

It just serves to show how a very simple parser works as a basis to create real ones.

How to use the parser from SemanticDiff

semanticmergetool.exe -s sample\source.code -d sample\destination.code -ep=codeparser.exe

How to configure Plastic SCM to use an external parser

Create an externalparsers.conf under your plastic4 configuration directory as follows:

C:\Users\pablo\AppData\Local\plastic4>type externalparsers.conf

.code=C:\Users\pablo\wkspaces\semantic-external-parsers\codeparser\bin\debug\codeparser.exe