Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INI Parser - template #21

Open
xmonader opened this issue Jul 17, 2022 · 0 comments
Open

INI Parser - template #21

xmonader opened this issue Jul 17, 2022 · 0 comments
Labels
task New task

Comments

@xmonader
Copy link
Member

xmonader commented Jul 17, 2022

Create an INI parser

expected API/methods on the parser

Can get inspired by configparser

  • LoadFromString
  • LoadFromFile
  • GetSectionNames list of all section names
  • GetSections serialize convert into a dictionary/map { section_name: {key1: val1, key2, val2} ...}
  • Get(section_name, key) gets the value of key key in section section_name
  • Set(section_name, key, value) sets a key in section section_name to value value
  • ToString
  • SaveToFile

deliverables

  • Code committed on username-inigo repo
  • Tests
  • Github actions
  • API documentation
  • Enduser documentation

remarks

  • assume there're no global keys, every keys need to be part of a section
  • assume the key value separator is just =
  • keys and values should have spaces trimmed
  • comments are only valid at the beginning of the line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task New task
Projects
None yet
Development

No branches or pull requests

2 participants