Incorporate these files into Icon programs using the $include
preprocessor macro.
This should be easier than translating to ucode and linking.
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")
- Produce a
- 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
Procedures to transform data structures into includable Icon declarations and statements
- procedure
iimage(x)
- Produce Icon code to reproduce value
x
, if possible
- Produce Icon code to reproduce value
- procedure
idump(f, x[])
- Write Icon code to reproduce values in list
x
- Write Icon code to reproduce values in list
- procedure
selectRecordFromListByField(Lfrom, sField, Ctest)
- Select matching records (or tables)
X
- from list
Lfrom
- where
X[sField] @ Ctest
succeeds
- from list
- Select matching records (or tables)
- procedure
wora(id)
- Set a globally visibe read-only value
- which is resettable by the C that creates it.
- Set a globally visibe read-only value