Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Create a parser which will parse a PCL prn file

Create a parser which will parse a PCL prn file

Create a parser which will parse a PCL prn file


I want to create a parser in C language which will parse a particular prn file according to the PCL_XL reference spec provided by HP. The parser should be able to list out all the operator,datatype and attributes used in the prn file just like statistics provided by jetasm tool.
Can anyone guide me to the approach on how to accomplish this task.


RE: Create a parser which will parse a PCL prn file

The PRN File Analyse tool in the PCL Paraphernalia (Windows) application (available via this web page) can provide analyses of 'captured' PCL5 and PCL XL print jobs; the 'Show Analysis Statistics' option will provide a summary of the various objects encountered.

Example of (part of ) analysis:

Example of (part of) statistics:

I can't remember just what JetAsm provides, so I don't know how close the output of PRN File Analyse is to that provided by JetAsm.

It won't tell you how to write your own parser, but (if you do manage to write your own) it will at least provide a means of checking your version whilst testing.

RE: Create a parser which will parse a PCL prn file

PCL_XL statistics provided by JetAsm is just like PRN File Analyse. Btw.. Thanks for the reply.. :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close