beautypg.com

Crunch CRiSP File Editor 6 User Manual

Page 13

background image

Page 13

These switches allow you to specify the output file format.

-tags

Output is compatible with the Unix ctags program and hence the tags database can be
used with other editors such as vi.

-text

Output file in textual format. Useful for diagnosing the output.

-crtags

(Default) Proprietary file format designed to be used in conjunction with CRiSP. Although
this file format is liable to change in the future, it provides more information in the tags file
which at some point in the future will be used by CRiSP to provide a more user-friendly
interface.

Language specifications"

crtags contains a table of default file extensions and the languages they correspond to. If you need to
override these language formats, then use the '-l ' switch to specify the language to be applied to ALL
files on the command line. (This switch is not position sensitive, it must precede all filenames on the
command line).

Language element feature selection

crtags supports a variety of languages. Different languages can describe different structures, e.g. a C++
program can contain class definitions, whereas an Assembly language program cannot. The data elements
which are currently parsed by crtags are listed below for each of the available languages.

You can use the -FEATURE switch to disable tag generation for some of these language features. For
example, you may not want #define entries in the tags file.

The following lists the elements you can disable, although not all of them are available for every language -
see the per-language description below for a list of entities supported.

-CLASS

Discard class definitions

-CONST

Discard constant variable definitions (or parameter definitions)

-DATA

Discard definitions of global variables.

-DEFINE

Discard #define definitions.

-ENUM

Discard enum definitions

-ENUM_MEMBER

Discard the members of an enum definition.

-FUNCTION

Discard function definitions

-INDEX

Discard SQL index definitions.

-LABEL

Discard label definitions (targets of a goto statement).

-MEMBER

Discard structure/union/class member definitions

-MODULE

Discard module definitions.

-PACKAGE

Discard package definitions.

-PROCEDURE

Discard procedure (subroutine) definitions

-RULE

Discard SQL rule definitions.

-STRUCT

Discard C style structure definitions

-TABLE

Discard SQL table definitions.

-TRIGGER

Discard SQL trigger definitions.

-TYPEDEF

Discard type definitions (e.g. typedef's in C/C++).

-UNION

Discard C style union definitions

Languages

In the following description, a summary of each of the supported languages is given, together with the
default file extension mappings and the tag entities which may be generated by crtags.

Language

File extensions

Ada

.a

Assembler

.asm, .s

Basic

.bas

C

.c

C++

.C, .c++, .cpp, .cxx, .h, .h++, .hxx

CRUNCH

.cr

Fortran

.f, .fcm, .f90

HTML

.html, .htm

IDL

.pro

Java

.java

Pascal/Borland Delphi

.pas