2.0.0 • Published 6 years ago

@alu0100818130/parseini v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

Reto 2: Ficheros INI

The INI file format is an informal standard for configuration files. INI files are simple text files with a basic structure composed of lists of sections, and each section is a list of property-value pairs. The exact rules for this format are as follows:

Blank lines and lines starting with semicolons are ignored.

Lines wrapped in and start a new section.

Lines containing an alphanumeric identifier followed by an = character add a setting to the current section.

Anything else is invalid.

That completely describes the language. Here is an example:

      ; comments are preceded by a semicolon
      ; global section
      searchengine=https://duckduckgo.com/?q=$1
      spitefulness=9.7

      ; each section but the global starts with [identifier]
      [gandalf]
      fullname=Mithrandir
      type=grey wizard
      website=http://tolkiengateway.net/wiki/Gandalf

      [gollum]
      fullname=Sméagol
      type=hobbit
      website=https://lotr.fandom.com/wiki/Gollum