|
From: Lark <lar...@ya...> - 2001-08-22 06:16:16
|
>>Alternatively, build the scanner on the command line under X. It >>should be as simple as typing "flex Scribia.l". Let me know whether >>this works please. > >Nope - > >[localhost:Scribia/scribia/Source] ben% flex Scribia.l > >"Scribia.l", line 1: unrecognized %option: >"Scribia.l", line 1: bad character: % >"Scribia.l", line 1: bad character: o >"Scribia.l", line 1: bad character: p >"Scribia.l", line 1: bad character: t >"Scribia.l", line 1: bad character: i >"Scribia.l", line 1: bad character: o >"Scribia.l", line 1: bad character: n >"Scribia.l", line 1: bad character: "Scribia.l", line 1: bad character: 8 >"Scribia.l", line 1: bad character: b >"Scribia.l", line 1: bad character: i >"Scribia.l", line 1: bad character: t >"Scribia.l", line 1: bad character: >"Scribia.l", line 1: bad character: % >"Scribia.l", line 1: bad character: o >"Scribia.l", line 1: bad character: p >"Scribia.l", line 1: bad character: t >"Scribia.l", line 1: bad character: i >"Scribia.l", line 1: bad character: o >"Scribia.l", line 1: bad character: n >"Scribia.l", line 1: bad character: "Scribia.l", line 1: bad character: n >"Scribia.l", line 1: bad character: e >-snip-... it goes on like that... Hm. Could you figure out what version of flex you are running? I built it fine under FreeBSD: # flex -p -v Scribia.l Variable trailing context rule at line 1225 Variable trailing context rule at line 1487 Variable trailing context rule at line 1536 Variable trailing context rule at line 1537 Variable trailing context rules entail a large performance penalty flex version 2.5.4 usage statistics: scanner options: -ipsvB8 -Cemr 12251/13000 NFA states 7577/8000 DFA states (166619 words) 301 rules Compressed tables always back-up 85/120 start conditions 3079 epsilon states, 1438 double epsilon states 16/100 character classes needed 213/500 words of storage, 321 reused 170733 state/nextstate pairs created 23056/147677 unique/duplicate transitions 7707/8000 base-def entries created 18724/20000 (peak 24492) nxt-chk entries created 1300/7500 (peak 7020) template nxt-chk entries created 0 empty table entries 191 protos created 130 templates created, 3937 uses 54/256 equivalence classes created 10/256 meta-equivalence classes created 3 (111 saved) hash collisions, 15650 DFAs equal 34 sets of reallocations needed 53172 total table entries needed Another thing might be if your line endings aren't correct. Does MacOS X use CR, LF, or both? Is it different from Classic? -- Lark <lar...@ya...> |