Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcsun!ukc!icdoc!qmw-cs!morten From: morten@cs.qmw.ac.uk (Morten Ronseth) Newsgroups: comp.sys.mac.programmer Subject: Flex for MPW Message-ID: <2632@sequent.cs.qmw.ac.uk> Date: 13 Aug 90 09:50:15 GMT Reply-To: morten@cs.qmw.ac.uk (Morten Ronseth) Organization: Computer Science Dept, QMW, University of London, UK. Lines: 45 For the last couple of days, I've been trying to port flex to the MPW environment. Everything compiles just fine, no problems there. But, whatever *.l file i run flex on, it seems to gag and die. For example, on an empty input file, it does ---accepting rule: #116 fatal parse error at 1. falls over and dies. On a file containing %{ #include "hello.h" %} it spits out: ---accepting rule: #116 ---accepting rule: #116 ---accepting rule: #0 ---accepting rule: #16 syntax error at line 1: illegale character ---accepting rule: #116 ---accepting rule: #0 ---accepting rule: #115 flex: flex scanner jammed Now the state of the machine is: yy_act = 16 yytext = "%" yy_current_state = 51 yy_hold_char = 123 right after `yy_act = yy_accept[yy_current_state]' in the second `while (1)' loop in flexscan. Can anyone tell me why it chokes on an input like this? This might not be the correct group to post this to, but I thought I'd give it a go. Morten. -- ==================================================================== Morten Lerskau Ronseth UUCP: morten@qmw-cs.uucp Dept. of Computer Science JANET: morten@uk.ac.qmw.cs Queen Mary and Westfield College ARPA: morten%qmw.cs@ucl-cs.arpa Mile End Road Easylink: 19019285 London E1 4NS Tlf: 071 975 5220 England. Dept. fax: 081 980 6533