felix literals(1)

NAME

Felix literals.

Integers

ArrayPrefix denotes radix, default decimal:
0b binary

0o octal

0d decimal

0x hexadecimal

Suffix denotes type, default int:

t tiny (C char)

s short (C short)

i int (C int)

l long (C long)

v vlong (C long long)

u unsigned, with one of above

i8 u8 8 bit (C99 int8_t)

i16 u16 16 bit (C99 int16_t)

i32 u32 32 bit (C99 int32_t)

i64 u64 64 bit (C99 int64_t)

Subexpressions involving the operators:

unary + identity

unary - negation

binary + addition

binary - suibtraction

binary * suibtraction

binary / quotient

binary % remainder

binary < <= == != => ? comparison

and integral literals of type int, are calculated at com
pile time (constant folding).

Strings

Array' .. '

''' .. ''' spans lines

" .. "

""" .. """ spans lines

Prefix:
r raw string, no escape processing

u UCS-4 (32 bit) string

c 8 bit C null terminated C string, of
type cptr[char] = 'char const*'

Arraystant folding).
<string> <string> ...
concatenate strings.

<string> <integer> ...
append ISO-10646 code point, use UTF-8 encoding for 8 bit
strings.

Floats

Arrayrated by single underscores. An exponent is the letter E or e
followed by a decimal digit string, underscores are not allowed,
however an underscore may separate the mantissa from exponent.
Suffix denotes type, default double:
f float

d double

l ldouble

Exponent kind:
e power of 10

p power of 2

Prefix denotes radix, default decimal:
x Hexadecimal

VERSION

1.1.1_rc1

SEE ALSO

felix(1) for a language introduction and man page index flx(1) for a list of the tools.
flxcc(1) for a description of the wrapper generator tool. flx_lit(1) for a description of literals
flx_op(1) for a list of operators
flx_cop(1) for a list of C operator precedence names flx_key(1) for a list of keywords
flx_grammar(1) for a grammar summary
flx_lib_typ(1) for a list of library types flx_dir(1) for a list of directives
flx_exec(1) for a list of executable statements
flx_decl(1) for a list of declarative statements flx_bind(1) for a list of binding statements

WEB SITE

See http://felix.sourceforge.net

AUTHOR

Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout