Posts Tagged ‘semantic rules’

An CFG for Roman numerals

In one of my assignments for Compiler course at my university, I have to deal with this problem: build an attributed grammar tree in order to recognize Roman numbers, and convert it into Arabic format. Well, it doesn’t seem a simple mission.

Read more…