Month: ตุลาคม 2008

วิธีการใช้ GLUT บน  MAC ด้วย Eclipse

วิธีการใช้ GLUT บน MAC ด้วย Eclipse

19 ตุลาคม 2008

Glut With Eclipse On Mac ก่อนอื่นเราต้องใช้ (Use This) #include <OpenGL/gl.h> #include <GLUT/glut.h> แทนที่จะใช้ (Instead Of) #include <GL/gl.h> #include <GL/glut.h> แล้ว คลิกขวาที่ Project ด้านซ้ายมือ เลือก Properties เลือก  “C/C++ Build:Properties” มองหาและไปที่ “Tool Settings” เลือกไปที่ “Mac OS X C++ Linker : Miscellaneous” เพิ่มใช่ช่อง “Linker flags” field: ด้วย -framework GLUT -framework OpenGL

Intro to Lex & Yacc [1]

Intro to Lex & Yacc [1]

18 ตุลาคม 2008

มาทำ scanner ด้วย flex กัน !! lex & yacc หมายเหตุ ว่า ส่วนของ scanner (ทำ lexical analysis)  ผมจะใช้โปรแกรม flex หรือ lex ส่วนของ parser เราใช้โปรแกรม bison ซึ่ง flex (Flex is a fast lexical analyser generator.) และ bison (Bison is a general-purpose parser generator) เป็นโปรแกรม บน unix based OS แต่บน windows  ก็มีให้ใช้ ลองไป search หา กันได้ครับ วิธีการติดตั้งง่ายๆ บน [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes