DOKK / manpages / debian 11 / m17n-docs / mplist_deserialize.3m17n.en
mplist_deserialize(3m17n) The m17n Library mplist_deserialize(3m17n)

mplist_deserialize - Generate a property list by deserializing an M-text.

MPlist * mplist_deserialize (MText * mt)

Generate a property list by deserializing an M-text. The mplist_deserialize() function parses M-text mt and returns a property list.

The syntax of mt is as follows.

MT ::= '(' ELEMENT * ')'

ELEMENT ::= SYMBOL | INTEGER | M-TEXT | PLIST

SYMBOL ::= ascii-character-sequence

INTEGER ::= '-' ? [ '0' | .. | '9' ]+ | '0x' [ '0' | .. | '9' | 'A' | .. | 'F' | 'a' | .. | 'f' ]+

M-TEXT ::= ''' character-sequence '''

Each alternatives of ELEMENT is assigned one of these keys: Msymbol, Minteger, Mtext, Mplist

In an ascii-character-sequence, a backslash (\) is used as the escape character, which means that, for instance, abc\ def produces a symbol whose name is of length seven with the fourth character being a space.

Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.

12 Jan 2011 Version 1.6.2