Class l2df.class.parser.dat deprecated

Last updated 2021-05-28 15:24:22

Parser for DAT syntax.

Inherited from l2df.class.BaseParser class.

Info:

Functions

DatParser:parse(str[, obj]) Method for parsing dat formatted string.
DatParser:dump(data) Method for dumping table to dat format.
DatParser:dumpBlock(block[, tabs]) Method for dumping dat-file's block.
DatParser:parseBlock(str[, obj]) Method for parsing dat-file's section string.


Functions

Methods
DatParser:parse(str[, obj])
Method for parsing dat formatted string. You can extend existing object by passing it as second parameter.

Parameters:

  • str string String for parsing.
  • obj table Object to extend. (optional)

Returns:

    table
DatParser:dump(data)
Method for dumping table to dat format.

Parameters:

  • data table Table for dumping.

Returns:

    string
DatParser:dumpBlock(block[, tabs])
Method for dumping dat-file's block.

Parameters:

  • block table Block for dumping.
  • tabs string (optional)

Returns:

    string
DatParser:parseBlock(str[, obj])
Method for parsing dat-file's section string. You can extend existing object by passing it as second parameter.

Parameters:

  • str string String for parsing.
  • obj table Object to extend. (optional)

Returns:

    table