Skip to content

Commit 65eb780

Browse files
authored
added ps for milestone 0
1 parent 3ab0707 commit 65eb780

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

milestone0/doc/problem_statement.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
1. ## The Language
3+
4+
1. Name the source language **S** for your compiler.
5+
2. Recall that you have to **implement** some features in the language that distinguish it from vanilla “C” language. If any such features are not present in **S,** you have to add them. **List these features.**
6+
3. Name the implementation Language (**I**) and target language (**T**)
7+
8+
You are free to borrow the grammar (ONLY) for your **S** from the internet or some other reference. However, make sure you cite the source.
9+
10+
2. ## The Lexer
11+
12+
Implement a lexical analyzer for the language **S** in **I**. The task of the lexer is to **highlight the syntax of S.** That is, the lexer will produce an **HTML** file in which different tokens of the input program are coloured in different colours.
13+
14+
Lexer must accept a command line argument **--cfg=<color config file name>** to specify a configuration file for colour scheme. Each row in this file will consist of a pair: <token name, valid HTML colour>. Every lexeme in the input program corresponding to the token “token name” must get the “valid HTML colour”.
15+
16+
Lexer must accept a command line argument **--out=<html file name>** to specify an output file.
17+
18+

0 commit comments

Comments
 (0)