Talk:Read a configuration file: Difference between revisions

original parser implementations
(History of the file format, and the reasoning behing the two comment symbols)
(original parser implementations)
Line 34:
 
[[User:Markhobley|Markhobley]] 00:47, 21 February 2011 (UTC)
 
On orginal parser implementations, comments were completely ignored. I went for option [a] set defaults before the config file is read. Boolean values were initially set to false unless toggled to true by the parser. There was no magic to uppercase / lowercase and variable names not matching the option names. I simply converted the case of the option name to upper case, and in the match code, I simply placed the matched data into the variable that I required.
 
[[User:Markhobley|Markhobley]] 00:15, 28 February 2011 (UTC)