Sign in to follow this  
derek7

parser

Recommended Posts

derek7    100
I am learn .x file parser by d3d interface. IDirectXFile IDirectXFileEnumObject IDirectXFileData etc... so question: Is parser a kind of a serach arithorm? If I wanna parser all mesh data in a .x file. must I parser all data object?

Share this post


Link to post
Share on other sites
LessBread    1415
parser

Quote:

In computer science, parsing is the process of analyzing an input sequence (read from a file or a keyboard, for example) in order to determine its grammatical structure with respect to a given formal grammar. It is formally named syntax analysis. A parser is a computer program that carries out this task. The name is analogous with the usage in grammar and linguistics. The term parseable is generally applied to text or data which can be parsed.

Parsing transforms input text into a data structure, usually a tree, which is suitable for later processing and which captures the implied hierarchy of the input. Generally, parsers operate in two stages, first identifying the meaningful tokens in the input, and then building a parse tree from those tokens.
...

Share this post


Link to post
Share on other sites
taby    1265
Yes, you would have to read it in either byte-for-byte in binary format, or line-by-line in text format.

Parsing a simple index, vertex normal, vertex position, uv coordinates .x file in text format is not terribly difficult. If you need code, please pvt msg me.

Share this post


Link to post
Share on other sites
derek7    100
Quote:
Original post by taby
Yes, you would have to read it in either byte-for-byte in binary format, or line-by-line in text format.

Parsing a simple index, vertex normal, vertex position, uv coordinates .x file in text format is not terribly difficult. If you need code, please pvt msg me.


I private message to you.thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this