C::Include 1.40 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 15K
Developer: Albert N. MICHEEV
0 stars award from rbytes.net

C::Include is a package to easy operate with binary data via describing they like C/C++ structs.

CLASSES AND PACKAGES

C::Include - Header file base parser class
C::Include::Struct - Struct wraper class

USAGE

use C::Include;

POSSIBILITY

- skip comments;

- valid preprocessor commands: define, ifdef, ifndef, endif, else;

- supported bitset and enclosed structs, enums;

- The compiled data may be cached in the external file and at repeated call not compiled
any more, that will speed up operation.8);

- may be defined and redefined type substitutions via #define
(Ex: #define WORD word );

- predefined standart types:
char
unsigned char
short
unsigned short
int
unsigned int
long
unsigned long
long long
unsigned long long
float
double
pointer
null
neganull
bit
short int
long int
long long int
unsigned
unsigned long int
unsigned short int
unsigned long long int
byte
dword
string (null padded)
sstring (space padded)
zstring (null terminated, null padded)

- predefined standart type aliases:
'short int' => 'short'
'long int' => 'long'
'long long int' => 'long long'
'unsigned' => 'unsigned long'
'unsigned long int' => 'unsigned long'
'unsigned short int' => 'unsigned short'
'unsigned long long int' => 'unsigned long long'
'byte' => 'unsigned char'
'word' => 'unsigned short'
'dword' => 'unsigned long'

Requirements:
Perl

C::Include 1.40 keywords