Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.67 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.67 KB

Icon "inclusion library"

Incorporate these files into Icon programs using the $include preprocessor macro. This should be easier than translating to ucode and linking.

fieldedDataFile.icn

Procedures to produce logical lines or fields from formatted data files.

  • record FieldedData(lines, fields)
    • Record holding two co-expression factories
  • procedure FieldedDataFactory(format, filePath)
    • Produce a FieldedData record corresponding to format
    • format == ("tabular" | "ini")
  • procedure tabularLines(f)
    • Factory for a co-expression producing logical lines of a tabular file
  • procedure tabularFields(line, sep)
    • Factory for a co-expression producing fields from a logical line of a tabular file
  • procedure iniLines(f)
    • Factory for a co-expression producing logical lines of an INI file
  • procedure iniFields(line)
    • Factory for a co-expression producing fields from a logical line of an INI file
  • procedure getIni(ini)
    • Parse an INI file into a table of tables
  • procedure alterExtension(fn, old_ex, new_ex)
    • Change extension of file name

iimage.icn

Procedures to transform data structures into includable Icon declarations and statements

  • procedure iimage(x)
    • Produce Icon code to reproduce value x, if possible
  • procedure idump(f, x[])
    • Write Icon code to reproduce values in list x

selectRecordFromListByField.icn

  • procedure selectRecordFromListByField(Lfrom, sField, Ctest)
    • Select matching records (or tables) X
      • from list Lfrom
      • where X[sField] @ Ctest succeeds

wora.icn

  • procedure wora(id)
    • Set a globally visibe read-only value
      • which is resettable by the C that creates it.