CoreDump: COOL from Stanford

Geometric by Dr Bheemaiah Anil K

Welcome to Core Dump, the One Stop for Techies, in this episode Gecko and the Trio, design a parser with GNU Bison and Jison for the COOL language, from the edx course by Stanford.

Dump 12.12.2021.13.47

Trio: We just audited this compiler course from Stanford, using the classroom object-oriented language, we have the formal definition for COOL, it is:


Can we just use Jison to create a parser?

The Trio


Yeah a GUI for the parser is available on JISON Debugger.

You can either paste a Bison syntax definition of the COOL language or compile the parser on the github repository linked above, CLI = GUI?

Trio: That simple, a scanner and a parser, and a graphical tree output and a JSON dump. Can we convert this JSON to DOM or XML, maybe XML to code generate and optimize, or the JSON itself.

Gecko: The JSON is persisted and scanned to a backend map, I can author to ready code? A ready compiler? Proving the Code like a Droid approach, all we need to learn are the CFG grammars?




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Rabbit hole (episode 1) — Tuning HTTP Connection Pool for S3

Integrate Microsoft 365 ServiceHealth and ServiceAnnouncements in ServiceNow


MechNuggets x KinkySkullx: MechSkullx

Fix Brew (Homebrew) on ARM M1 Macs

Remember These Things During Salesforce Mobile Application Development

Getting started with Android Development (for Beginners only)

Why Don’t We Like the Taste of Vegetables?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anil Kumar B

Anil Kumar B

More from Medium

The Oxygen, Humidity, and Salt Quotient

Did you know? … eight entertaining facts about board games!

The Disgusting Truth About The Matrix Sequel

Satan vs. the Lord: in a match of witchcraft and redemption, who will win?