|
컴파일러\\LEX
C:\\2007_2학기\\강의자료_컴파일러\\LEX>flex -oex0412.c ex0412.l
\"ex0412.l\", line 14: unrecognized rule
\"ex0412.l\", line 24: EOF encountered inside an action
<<여기서 에러를 수정하고, 다른 이름(ex04120.l)으로 저장함>>
C:\\2007_2학기\\강의자료_컴
|
- 페이지 11페이지
- 가격 1,000원
- 등록일 2009.10.25
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
Lex & Yacc 를 이용한 계산기 Source code입니다.
Visual studio를 이용해 작성하였으며, debug folder에 실행파일 있습니다.
|
- 페이지 30페이지
- 가격 3,000원
- 등록일 2009.03.17
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
lex input file 인 yyin으로부터 token을 읽어들어 grammar rule에 따라 parsing하는 syntax analyzer인 yyparser( )를 호출한다. 즉, yyparse( )는 yacc에 의해 생성되는 parser의 C routine이다.
③ cal_lex.l
%{
#include "cal_yacc.h"
#include "cal.h"
#include <math.h>
%}
%%
([0-9]+|([0-9]*
|
- 페이지 10페이지
- 가격 1,000원
- 등록일 2009.03.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
;
exit(1);
}
void symbol_reverse(void) /* parsing table의 값을 거꾸로 stack에 넣음 */
{
int s = 0;
int f = 0;
while(reverse[f]!='\0'){
f++;
}
f--;
for( ; f >= s; f--){
push(reverse[f]);
}
}
void parser(void) /*parsing table과 연결시켜 input을 parsing한다.*/
{
while(temp != '$'){ /* stack이 empty
|
- 페이지 7페이지
- 가격 1,000원
- 등록일 2009.03.18
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
Lex & Yacc 를 이용한 Intermediate code 생성 Source code입니다.
Visual studio를 이용해 작성하였으며, debug folder에 실행파일 있습니다.
[intecode2]
[Debug]
intecode2.dsp
intecode2.dsw
intecode2.ncb
intecode2.opt
intecode2.plg
intercode2.h
|
- 페이지 30페이지
- 가격 3,000원
- 등록일 2009.03.18
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|