White space rarely means anything to any scripting or programming language, and Valves scripts are no exception. Commented lines usually rely on carriage returns and newlines to determine where to stop.
On Mon, Dec 14, 2009 at 2:15 AM, Darien Hager <[email protected]>wrote: > Tobias Kammersgaard wrote: > > Tokenreader.cpp is what Valve uses. In /public/tier1/ if I recall. I'm > > lying sick in my bed right now, so I can't check :-( > > > Does anybody know how widely that class is used? I'm trying to figure > out whether out I can safely combine some of my lexer/tokenizer code to > avoid redundancy.... Which would be a good idea if Valve uses the same > class for the same things too. > > In particular, it seems that FGDs and the "Valve Data Format" files > (VMT, GameInfo, VMF, etc.) all use the same kinds of rules regarding the > (un)importance of whitespace and rules for quoted strings and plain > identifiers, etc. > > Are there any formats where whitespace is significant? It seems > one-liner VMTs work fine when I test them. > > Thanks, > --Darien A. Hager > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- ~Ryan ( skidz ) _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

