o-jill / kouets

automatic lint program with gui.
1 stars 0 forks source link

XML project file format #19

Closed o-jill closed 9 years ago

o-jill commented 9 years ago

how about change project file format to XML? it is useful for adding some parameters. how to use SAX parser in Qt:

o-jill commented 9 years ago

you can also choose JSON as a file format :smiley:

o-jill commented 9 years ago

this is an example.

<?XML version="1.0" ?>
<kouets version="1.0">
 <config>
  <activatetab> FALSE </activatetab>
  <apppath> C:/path/to/default.exe </apppath>
  <cmdline> --some --default --command --option </cmdline>
  <color1> #FF0000 </color1>
 </config>
 <item>
  <file>kouetsapp.cpp</file>
  <!-- default program(apppath) and cmdline  will be used -->
 </item>
 <item>
  <file> kouetsapp.h </file>
  <apppath> C:/speci/alpat/htoan/application.exe </program>
  <cmdline> --some --command --option </cmdline>
  <parser> cpplint.py_VS7 </parser>
 </item>
</kouets>
o-jill commented 9 years ago

this is JSON example but unfortunately JSON sometimes has comma problem...

{
 "kouets": {
  "config": {
   "activetab": "FALSE",
   "apppath": "C:/path/to/default.exe",
   "cmdline": "--some --default --command --option"
  },
  "item": {
   "file":"kouetsapp.cpp"
  },
  "item": {
   "file":"kouetsapp.h",
   "apppath":"C:/speci/alpat/htoan/application.exe",
   "cmdline":"--some --command --option",
   "parser":"cpplint.py_VS7"
  }
 }
}
o-jill commented 9 years ago

file format specification was written in projectfilespec.md.

o-jill commented 9 years ago

implemented in PR #29.