You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
1.2 KiB
18 lines
1.2 KiB
4 years ago
|
Compiler Construction PA1 Worklog
|
||
|
<br>
|
||
|
<br>Team:
|
||
|
<br>Apoorva Ranade(ar6496)
|
||
|
<br>Sanjar Ahmadov(sa5640)
|
||
|
<br>Yinqi Sun(ys3540)
|
||
|
<br>
|
||
|
<br>Acknowledgments: Provide attribution to any collaborations, external resources, or out-side help.
|
||
|
<br>
|
||
|
<br>Indentation: Describe your strategy for handling INDENT and DEDENT tokens. Point to the relevant source files and line numbers.
|
||
|
<br>A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack.
|
||
|
<br>
|
||
|
<br>Challenges: Describe any challenges (besides indentation) you encountered and the way you solved them. Mention the approaches that did not work, if any.
|
||
|
<br>
|
||
|
<br>
|
||
|
<br>Improvements: Describe any improvements you introduced that were not strictly necessary to pass the tests, such as implementing additional functionality, adding new tests, or enabling static analysis.
|
||
|
<br> Added more tests to rigorously check program flow and indentation.
|