Chapter 2. Your First EMBOSS Application

Table of Contents

2.1. helloworld in C
2.2. helloworld in EMBOSS
2.2.1. Planning and Design
2.2.2. Writing the ACD File
2.2.3. Testing the ACD file
2.2.4. Writing the Source Code
2.2.5. Integration (Adding the Application to EMBOSS)
2.2.6. Compilation
2.2.7. Debugging
2.2.8. Testing
2.2.9. Documentation
2.3. Modifying helloworld
2.3.1. Modifying the ACD File
2.3.2. Modifying the C Source Code
2.3.3. Running the Program
2.3.4. Qualifiers and Parameters
2.3.5. Adding an Integer
2.3.6. Parameters and Qualifiers Revisited
2.4. Modifying matcher
2.4.1. Planning
2.4.2. Editing the ACD Files
2.4.3. Editing the C Source File
2.4.4. Compilation
2.4.5. Testing All Is Well
2.4.6. Further Developments
2.5. String Handling
2.5.1. stringplay.acd
2.5.2. stringplay.c
2.5.3. Compilation and Testing
2.5.4. Adding Functionality
2.5.4.1. String Memory Management

Most programming books begin with a program to write a simple phrase to the screen, and that phrase is invariably "Hello World!". This section will lead you through the process of writing your first application, helloworld under EMBOSS. You'll cover the basic elements common to every EMBOSS program and introduce the steps used to create applications.

Some of the examples below use mymeboss (Section 3.2, “Integration and Compilation”), so you must first install and configure this package (see Section 1.2, “Installation of CVS (Developers) Release”). myemboss is a special EMBASSY package and is found in the normal EMBASSY application directory e.g.

/home/auser/emboss/emboss/embassy/myemboss