| Age | Commit message (Collapse) | Author |
|
|
|
|
|
We would need to distinguish user configuration options from
normalization. Let normalize() return a new table instead of in-place
update.
Split annotations into xxxOptions and xxx for header, segments and
sections, delineating optional vs normalized table.
Leave header, segments and sections as just a data table for now and
stop trying to make them objects. Leave data alone.
|
|
|
|
We already check for these missing fields with a nice source line
highlighting in config with error(). Better than assert().
|
|
By the time normalize() finishes there shouldn't be a need to check
for individual fields defined or not.
|
|
|
|
- Mark optional fields and normalize them on load.
- Validate (work in progress) required fields and their values.
- Make sure that errors point to useful location in the config file.
|
|
This simplifies calling pack() on respective tables.
|
|
While here, define a elf.d.lua to help author type check configuration file.
|