ZDoom MAPINFO comment parsing

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

ZDoom MAPINFO comment parsing

Postby Death Egg » Tue Feb 09, 2021 7:43 pm

Hi, I'm currently implementing a parser for a source port that is capable of reading both old and new style ZDoom MAPINFO. While I'm aware MAPINFO's current commenting style is C-style (//) there was mention of previous standards possibly supporting semicolons instead. Was this a thing, and if so how should I account for it? Should I just consider both valid comments at any time?
User avatar
Death Egg
 
Joined: 14 Aug 2012

Re: ZDoom MAPINFO comment parsing

Postby Graf Zahl » Wed Feb 10, 2021 1:25 am

The original Hexen parser did indeed use semicolons for comments, so for the old format you need to handle semicolons as comments that span the rest of the line.
The parse mode for the new format does not recognize this as comment.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 0 guests