作者civelant (阿痕)
看板b93902HW
標題Re: [作業] Compiler Hw1問題
時間Tue Mar 20 18:14:26 2007
※ 引述《civelant (阿痕)》之銘言:
: ※ 引述《civelant (阿痕)》之銘言:
: : 想請問一下那個程式
: : 我照課本上的寫法
: : 然後用
: : lex hw1.l
: : cc -ll lex.yy.c
: : 為何會出現錯誤訊息
: : 說 `vowel' undeclared (first use in this function)
: : (vowel是我在regular definitions那部份定義的東西)
: : 明明之前就有定義阿
: : 是我哪裡寫錯了嗎?
: 請問一下測資要從鍵盤輸入要怎麼改
: 像投影片上寫的 a.out < data
: 這似乎是把測資寫在data這個檔裡面
: 那如果要從鍵盤直接輸入測資 要怎麼用?
3.3.5(b) 有人可以翻譯一下嗎?
All strings of lowercase letters in which the letters are in ascending
lexicographic order
意思是像
adhxz 這樣的嗎?
那如果aadhyz這樣可以嗎?(就有兩個一樣的字連續)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.70.6.73
推 JY:我認為 aadhyz 可以,因為它沒有違反 ascending lex. order 03/20 21:13
推 nameofevil:我以為aa 應該是 not decending order @__@? 03/21 01:32
推 zdk7r:aa應該是不符合 proper decending order 03/21 01:39