ACM Home Page
Please provide us with feedback. Feedback
Chirp on crickets: teaching compilers using an embedded robot controller
Full text PdfPdf (803 KB)
Source Technical Symposium on Computer Science Education archive
Proceedings of the 37th SIGCSE technical symposium on Computer science education table of contents
Houston, Texas, USA
SESSION: Compilers table of contents
Pages: 82 - 86  
Year of Publication: 2006
ISBN:1-59593-259-3
Also published in ...
Authors
Li Xu  University of Massachusetts Lowell, Lowell, MA
Fred G. Martin  University of Massachusetts Lowell, Lowell, MA
Sponsors
SIGCSE: ACM Special Interest Group on Computer Science Education
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 8,   Downloads (12 Months): 52,   Citation Count: 6
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1121341.1121370
What is a DOI?

ABSTRACT

Traditionally, the topics of compiler construction and language processing have been taught as an elective course in Computer Science curricula. As such, students may graduate with little understanding or experience with the useful techniques embodied in modern compiler construction.In this paper, we present the design of Chirp, a language specification and compiler implementation. As a language, Chirp is based on Java/C syntax conventions and is matched with the stack-based virtual machine that is built into the simple yet versatile Handy Cricket educational robot controller. As a compiler, the Chirp design is a series of Java components. These modules demonstrate key compiler construction techniques including lexing, parsing, intermediate representation, semantic analysis, error handling and code generation.We have designed a 6-week teaching module to be integrated into an intermediate-level undergraduate programming class. In the module, students will incrementally build the Chirp compiler, culminating with code generation for the Cricket controller. They will test their work on both physical Cricket-based robots and a web-based Cricket simulator. The Chirp system and our pedagogical design provides a realistic and engaging environment to teach compilers in undergraduate core programming courses.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
ACM Computing Curricula 2001, Computer Science volume. http://www.sigcse.org/cc2001/.
 
2
ANTLR documentation. http://www.antlr.org/doc.
3
4
 
5
6
 
7
K. D. Cooper and L. Torczon. Engineering a Compiler. Morgan Kaufmann, 2003.
8
9
 
10
 
11
 
12
F. G. Martin and S. Kuhn. Computing in context: Integrating an embedded computing project into a course on ethical and societal issues. in press, 2006.
 
13
F. G. Martin, N. Palmer, and B. Skinner. The virtual cricket: A web-based simulator for learning robot programming. In preparation.
14
 
15
M. Resnick, R. Berg, and M. Eisenberg. Beyond black boxes: Bringing transparency and aesthetics back to scientific investigation. Journal of the Learning Sciences, 9(1):7--30, 2000.
 
16
L. Xu and F. Martin. The chirp language specification. Technical Report TR-2005-003, Dept. of Computer Science, UMass Lowell.