K
Kenny McCormack
Note that TXL was (AFAICT) written in C, so it is on topic here.
I've started playing with TXL - and yes, the hard part is wrapping your
mind around its way of doing things. The first thing I tried to
implement was an identity filter - i.e., the equivalent of simple "cat".
It seems to me that an identity filter should be to filter languages/programs
what "hello, world" is to straight-up procedural languages.
However, the problem is that it seems to have a concept of line length.
I am using the "-char" option, but there are still problems.
Very long lines in the input are output correctly (that's good; they are
not truncated or wrapped), but an extra empty line is output after the
very long (I think "very long" can be read as "greater than about 100").
Also, an extra blank line is output at the end of the file.
Thus, it seems not possible to write the "IF". Is it?
I've started playing with TXL - and yes, the hard part is wrapping your
mind around its way of doing things. The first thing I tried to
implement was an identity filter - i.e., the equivalent of simple "cat".
It seems to me that an identity filter should be to filter languages/programs
what "hello, world" is to straight-up procedural languages.
However, the problem is that it seems to have a concept of line length.
I am using the "-char" option, but there are still problems.
Very long lines in the input are output correctly (that's good; they are
not truncated or wrapped), but an extra empty line is output after the
very long (I think "very long" can be read as "greater than about 100").
Also, an extra blank line is output at the end of the file.
Thus, it seems not possible to write the "IF". Is it?