Welcome! Log In Create A New Profile

Advanced
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives
avatarAugust 21, 2013 01:39PM
But now you have introduced order dependency and content limitations. Parsing syntax in this kind of format is an unnecessary headache, because it's inherently very fragile.

Most structured languages have solved this problem. Look to XML for inspiration, not LDraw. If you want key-value pairs, then you either need to force keys and values, or you need a symbol to indicate a key with no value, e.g. <tag/>. You also need an escape sequence for including the delimiter(s) themselves in values, e.g. <tag>&lt;</tag>. Frankly, it's a lot easier to write parsing code for something like that than the alternative.

Allen
SubjectAuthorViewsPosted
Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik384August 13, 2013 05:05PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee182August 13, 2013 10:42PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Magnus Forsberg162August 14, 2013 08:54AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee167August 14, 2013 09:25AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Travis Cobbs161August 14, 2013 09:50AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Reuben Pearse202August 28, 2013 01:40PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Travis Cobbs208August 28, 2013 02:56PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen177August 15, 2013 01:55AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik149August 16, 2013 02:20PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Michael Heidemann140August 17, 2013 04:49AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen142August 17, 2013 06:27AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Michael Heidemann143August 17, 2013 08:25AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik153August 17, 2013 09:43AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik144August 17, 2013 10:06AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Michael Heidemann127August 17, 2013 11:24AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik130August 17, 2013 04:34PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee143August 18, 2013 12:37AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Michael Heidemann138August 18, 2013 01:13AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik147August 18, 2013 08:12AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee147August 18, 2013 08:40AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo144August 18, 2013 08:52AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen151August 18, 2013 02:02PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik135August 18, 2013 10:39AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Jude Parrill135August 19, 2013 12:12AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik142August 19, 2013 12:18PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik143August 18, 2013 02:21PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen129August 18, 2013 03:24PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik138August 18, 2013 04:51PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Orion Pobursky120August 20, 2013 07:10AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Allen Smith130August 20, 2013 09:26AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik135August 20, 2013 11:38AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Roland Melkert121August 20, 2013 02:44PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee137August 20, 2013 11:07PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo134August 20, 2013 11:52PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee141August 21, 2013 04:29AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik145August 21, 2013 07:24AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo115August 21, 2013 07:39AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik145August 21, 2013 08:33AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo141August 21, 2013 10:12AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik133August 21, 2013 11:49AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Allen Smith142August 21, 2013 01:39PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Roland Melkert116August 21, 2013 02:03PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee139August 21, 2013 10:24PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Allen Smith130August 22, 2013 10:29AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik145August 22, 2013 12:47PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee149August 22, 2013 11:36PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Roland Melkert140August 23, 2013 08:34AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo150August 24, 2013 02:22AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Travis Cobbs125August 22, 2013 01:40PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik120August 21, 2013 07:17AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Tim Gould159August 18, 2013 06:04AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Ben Supnik145August 18, 2013 08:09AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen127August 18, 2013 02:01PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee133August 17, 2013 07:01AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo133August 18, 2013 12:28AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Chris Dee141August 18, 2013 12:44AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Santeri Piippo133August 18, 2013 01:00AM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen129August 18, 2013 02:01PM
Re: Parsable Meta-Data for High-detail vs. Low-detail parts and primitives Steffen195September 01, 2013 01:37PM



Sorry, only registered users may post in this forum.

Click here to login