Skip to main content
gamedev.net
🔒 Locked

parser

Started by derek7 Apr 24, 2006 at 10:22 AM 2 replies 750+ views
Original Post
derek7
derek7
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?
LessBread
LessBread
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.
...
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
taby
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.
derek7
derek7
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.