NAME

MarpaX::ESLIF::Value::Type - ESLIF Value Types

VERSION

version 6.0.35.1

SYNOPSIS

use MarpaX::ESLIF;

my $valueType;
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_UNDEF;         #  0
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_CHAR;          #  1
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_SHORT;         #  2
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_INT;           #  3
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_LONG;          #  4
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_FLOAT;         #  5
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_DOUBLE;        #  6
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_PTR;           #  7
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_ARRAY;         #  8
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_BOOL;          #  9
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_STRING;        #  10
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_ROW;           #  11
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_TABLE;         #  12
$valueType = MarpaX::ESLIF::Value::Type->MARPAESLIF_VALUE_TYPE_LONG_DOUBLE;   #  13

DESCRIPTION

ESLIF values are mapped to constants. This module is giving access to them, although they have no use in the perl interface.

CONSTANTS

MARPAESLIF_VALUE_TYPE_UNDEF

Undefined value.

MARPAESLIF_VALUE_TYPE_CHAR

C's char.

MARPAESLIF_VALUE_TYPE_SHORT

C's short.

MARPAESLIF_VALUE_TYPE_INT

C's int.

MARPAESLIF_VALUE_TYPE_LONG

C's long.

MARPAESLIF_VALUE_TYPE_FLOAT

C's float.

MARPAESLIF_VALUE_TYPE_DOUBLE

C's double.

MARPAESLIF_VALUE_TYPE_PTR

C's void *.

MARPAESLIF_VALUE_TYPE_ARRAY

C's pointer to a {void *, size_t} structure.

MARPAESLIF_VALUE_TYPE_BOOL

C's short where any value different than zero means a true value.

MARPAESLIF_VALUE_TYPE_STRING

A string. Encoding is contextual and depend on the action that generated that string. Lexemes that comes from a grammar running in character mode are guaranteed to be in UTF-8.

MARPAESLIF_VALUE_TYPE_ROW

An array of values.

MARPAESLIF_VALUE_TYPE_TABLE

An array of values, where number of values is even.

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Jean-Damien Durand.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.