[프로그래밍 언어] C,pascal,prolog,haskell,비주얼베이직의 문법
- 최초 등록일
- 2003.05.23
- 최종 저작일
- 2003.05
- 23페이지/ 압축파일
- 가격 1,000원
목차
1.소개글
2.C언어의 문법적 특징
3.Visual Basic 6.0의 문법적 특징
4.Haskell의 문법적 특징
5.Pascal의 문법적 특징
6.Prolog의 문법적 특징(다른 첨부파일)
7.최종정리(표로 작성)
8.참고자료
본문내용
2.C언어
1.Name
: 최대 31 characters, 대소문자구별(case sensitive), special words는 reserved word이다(언어에서 사용하는 명령어들은 변수명으로 사용할 수 없다), 첫 번째 바이트는 알파벳 대소문자 혹은 _여야 하며 중간부분은 알파벳과 숫자와 _의 혼합
2.변수(Variables)
(1)name : 위의 Name form을 따른다
(2)address : 같은 이름을 가진 변수가 다른 위치에서 서로 다른 시간대에 다른 address를 갖고 선언되는 것을 허용한다.
ex) void pass_1(){
int a = 10;
int pl;
pl = a+100;
}
void pass_2(){
int a = 30;
int pl;
pl = a-1;
}
//pass_1에서의 a와 pass_2에서의 a는 완전히 다른 변수이며 다른 address를 사용하고 프로그램을 실행할 때 다른 시간대에 다른 위치에서 사용된다.
또한 공용체 union은 aliases이다(같은 address를 여러 변수가 공유하는 것) union의 크기는
참고 자료
Concepts of programming languages Robert W. Sebesta
http://www.cubem.com/jsboard/read.php?table=cube&no=1071/
http://ldj63.x-y.net/vb/vb4-1.htm/
http://www.vbpp.net/
http://plas.hyu.ac.kr/pl2002/resource/slide06v1s.pdf
http://www.aistudy.co.kr/prolog/prolog%20syntax.htm
http://webmail.hansung.ac.kr/~wcha/lecture/is/is-5.ppt
http://idos.kaist.ac.kr/~mskrap/com/prolog/
http://www.csci.csusb.edu/dick/cs320/sebesta/05.html
http://ei.cs.vt.edu/~cs5314/slides/Ch4.pdf
http://www.cs.uah.edu/~delugach/Courses/CS524/Lecture_Notes/Session-06.Jan.29.pdf
http://marsalis.internet2.edu/cgi-bin/viewcvs.cgi/shibboleth/java/src/edu/internet2/middleware/eduPerson/ScopedAttribute.java.diff?r1=1.4&r2=1.5
http://www.brpreiss.com/books/opus5/html/page112.html
http://www.cs.southwestern.edu/~owensb/PL/seb5.html
http://www.ics.uci.edu/~klefstad/s/141/lectures/old/Sem_View_1.txt
http://www.cps.cmich.edu/~ahlswede/class/cps550/exam2rvw.html
http://www.cc.gatech.edu/classes/cs3411b_99_winter/Variables.html
압축파일 내 파일목록
pl레포트97완성.hwp
Prolog.doc