[Lazarus] reading FORTRAN-style input in Lazarus

Alexander Klenin klenin at gmail.com
Fri Aug 5 15:12:35 CEST 2011


On Sat, Aug 6, 2011 at 00:06, Marco van de Voort <marcov at stack.nl> wrote:
> On Fri, Aug 05, 2011 at 08:55:39AM +0000, Mark Morgan Lloyd wrote:
>> A few months ago I was reading lots of SNMP MIBs (sming format), and
>> wrote a parser using a Meta-2 derivative. However in the general case,
>> and particularly for line-oriented input, it's probably a job for either
>> regexes or an (as yet unwritten) equivalent to format() etc. However,
>> error recovery (when a line departs from the accepted format part-way
>> through) is not going to be easy.
>
> sscanf's like constructs are also a possibility. ARRAY OF CONST is strong enough to
> implement it.

Really? Can values passed through "array of const" be modified?

-- 
Alexander S. Klenin




More information about the Lazarus mailing list