[clug] An EBCDIC lex ?
steve jenkin
sjenkin at canb.auug.org.au
Sat Aug 14 02:20:34 MDT 2010
Paul Matthews wrote on 14/08/10 5:48 PM:
> On 14/08/10 15:42, Eyal Lebedinsky wrote:
>> Something like what in ASCII will say:
>> DIGIT [0-9]
>> should now say
>> DIGIT [\xf0-\xf9]
>> (I think this is how you escape hex in flex input)
>>
> Now that is a good idea Eyal.
>
> ( A lot less tedious than attempting a handwritten state machine. )
>
Paul,
My recollection of using a C compiler on 370-series was constants of the
form 'x' (ie char) would be encoded as EBCDIC.
So cut-and-paste of Flex files, as long as state machine in chars, would
work out-of-the-box.
HTH
s
--
Steve Jenkin, Info Tech, Systems and Design Specialist.
0412 786 915 (+61 412 786 915)
PO Box 48, Kippax ACT 2615, AUSTRALIA
sjenkin at canb.auug.org.au http://members.tip.net.au/~sjenkin
More information about the linux
mailing list