OS4 DepotLogo by Marko 
(anonymous IP:,2219) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Library » Misc » parserutils.lha


Description: utility library for parser building
Download: parserutils.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 538kb
Version: 1.5(0.1.1)
Date: 27 May 2012
Author: NetSurf Developers, os4 port by Chris Young
Submitter: uploader
Email: uploader/uploader com
Homepage: http://www.netsurf-browser.org/projects/libparserutils/
Requirements: iconv_os4.lha
Category: library/misc
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 7121
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 158  (Current version)
158  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
v1.4 built without iconv.library requriement is in "old - no iconv"

LibParserUtils -- a utility library for parser building


  LibParserUtils provides various pieces of functionality that are useful
  when writing parsers. These are:

  + A number of character set convertors
  + Mapping of character set names to/from MIB enum values
  + UTF-8 and UTF-16 (host endian) support functions
  + Various simple data structures (resizeable buffer, stack, vector)
  + A UTF-8 input stream


  LibParserUtils requires the following tools:

    + A C99 capable C compiler
    + GNU make or compatible
    + Perl (for the testcases)
    + Pkg-config (for the testcases)
    + doxygen (for the API documentation)

  For enhanced charset support, LibParserUtils requires an iconv() 
  implementation. If you don't have an implementation of iconv(),
  this requirement may be disabled: see the "Disabling iconv() 
  support" section, below.


  The exact type of build may be configured by passing parameters to make.
  Common usage is described below.

  For a static library:

  		$ make

  For a shared library:

		$ make COMPONENT_TYPE=lib-shared

  For a static library with debug enabled:

		$ make BUILD=debug

  To cross-compile a static library:

		$ make TARGET=<target-platform>


  The library's functionality may be verified, thus:
  		$ make test

  If you wish to see test coverage statistics, run:

		$ make coverage

  Then open build/coverage/index.html in a web browser.

  In both cases, ensure that the same parameters to make are passed as when 
  building the library.


  To install the library:

		$ make install

  Ensure that the same parameters to make are passed as when building the

  To specify the installation prefix:

		$ make install PREFIX=/path/to/prefix

  To specify a staging directory for packaging:

		$ make install DESTDIR=/path/to/directory

  Items will be installed to $(DESTDIR)$(PREFIX)/

  To uninstall:

		$ make uninstall

API documentation

  Use doxygen to auto-generate API documentation, thus:

  		$ make docs

  Then open build/docs/html/index.html in a web browser.

  The test driver code in test/ may also provide some useful pointers.

Disabling iconv() support

  Without iconv() support enabled, libparserutils only supports the 
  following character sets:

    + UTF-16 (platform-native endian)
    + UTF-8
    + ISO-8859-n
    + Windows-125n
    + US-ASCII

  To disable iconv() support in libparserutils, do the following:


  Then build libparserutils as normal.

Copyright © 2004-2024 by Björn Hagström All Rights Reserved