Skip to content

Getting involved in development

Julien Delplanque edited this page May 3, 2018 · 2 revisions

Install development version

There is a special group in the baseline named dev which will load all you need to contribute to PostgreSQLParser development. To load this group use:

Metacello new
	baseline: 'PostgreSQLParser';
	repository: 'github://juliendelplanque/PostgreSQLParser/src';
	load:'dev'.

PSQLPlantUMLGenerator

This class allow to generate a PlantUML script showing dependencies between grammar/AST builder classes. To use it:

PSQLPlantUMLGenerator parserDependenciesPlantUMLScript

If you do not have PlantUML installed, you can use PlantText website to get a preview of the dependencies graph.

Test builder

This widget allows to generate a smoke test from a PostgreSQL/plpgSQL code snippet. Open the widget with:

PSQLTestBuilderWidget open
  1. Enter the name of the rule you want to test.
  2. Enter the name of the class that will hold your tests.
  3. Enter the prefix for the selector of the test and the starting index for the test. The selector generated will be selectorPrefix index.
  4. Copy/paste the code in the text field and it will be modified to become a valid Smalltalk string.

Visited methods generator

TODO

Visitor methods generator

Clone this wiki locally