jmoyers / cool-lexer

stanford compilers flex lexer for cool

Home Page:http://jmoyers.org/flex-lexer-for-cool/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a flex lexer implementaiton for the cool language.

Only file of interest here is cool.flex, or perhaps the makefile if you're interested in building on OSX.

Note the key here was the Stanford course doesn't use the c++ version of flex output, they need the -lfl (or on osx -ll) option to disable some default function that allows you to pass multiple input files in.

About

stanford compilers flex lexer for cool

http://jmoyers.org/flex-lexer-for-cool/


Languages

Language:C 56.8%Language:C++ 35.7%Language:Lex 4.4%Language:Cool 2.2%Language:Makefile 0.8%Language:Common Lisp 0.0%