Macrocoder

HOWTOs - Managing rules projects

HOWTO - Managing rules projects

Rules projects are container that group together all the files forming a Macrocoder rules program. They contain all the FCL code needed to implement the grammar parser, the semantic analyzer and the code generator.

Create a rules project

Creation of a rules project

To create a rules project:

  1. make sure the Rules 1 tab is selected;
  2. click on the local menu icon 2;
  3. select Create new rules project 3;
  4. save the project in a directory: that directory will become the home path of that rules project;

Create and add a source file

Once the project has been created, source files can be added.

Creation of a rules project
  1. make sure the Rules tab is selected;
  2. right-click on the Files entry or in the white area below 1
  3. select Create and add a source file 2 if a plain text .fcl source file is required;
  4. select Create and add a grammar file 3 if a grammar .fcg source file is required ;
  5. give the file a meaningful name and save it;