Adding new KPP commands
To add a new KPP command, the source code has to be edited at several
locations. A short summary is presented here, using NEWCMD as an
example:
Add the new command to several files in the
src/directory:scan.h: addvoid CmdNEWCMD( char *cmd );scan.l: add{ "NEWCMD", PRM_STATE, NEWCMD },scanner.c: addvoid CmdNEWCMD( char *cmd )scan.y:Add
%token NEWCMDAdd
| NEWCMD PARAMETERAdd
{ CmdNEWCMD( $2 ); }
Add Continuous integration tests:
Create a new directory
ci-tests/ros_newcmd/ros_newcmd.kppAdd new Continuous integration tests to the
ci-testsdirectory and update the scripts in the.ci-pipelinesdirectory.
Add documentation to user manual
docs/source/*/*.rst:Add to Table Default values for KPP commands
Add a new subsection to KPP commands
Add to the Table BNF description of the KPP language
Add command to
site-lisp/kpp.el(Emacs configuration file)