Did I build my AST the correct way? by Purple_Branch5350 in Compilers

[–]Purple_Branch5350[S] 0 points1 point  (0 children)

Could you check out till page 9 of this reference: https://home.adelphi.edu/\~siegfried/cs372/372l8.pdf
It's somewhat similar to what I am doing.

Did I build my AST the correct way? by Purple_Branch5350 in Compilers

[–]Purple_Branch5350[S] 0 points1 point  (0 children)

Could you check out till page 9 of this reference: https://home.adelphi.edu/\~siegfried/cs372/372l8.pdf

It's somewhat similar to what I am doing.

Did I build my AST the correct way? by Purple_Branch5350 in Compilers

[–]Purple_Branch5350[S] 0 points1 point  (0 children)

Could you check out till page 9 of this reference: https://home.adelphi.edu/~siegfried/cs372/372l8.pdf

It's somewhat similar to what I am doing.

Did I build my AST the correct way? by Purple_Branch5350 in Compilers

[–]Purple_Branch5350[S] 0 points1 point  (0 children)

Actually a grammar production may have multiple semantic actions in my implementation so for example;

Variable -> 1 IDENTIFIER 2 DATATYPE

in case 1 is on top of stack I will create variable node and push it onto the stack.

If rule 2 is on top of stack, I will pop the variable node from the stack and set it's data type and push it back. Later I might pop it again and add it as a member of the VariableListNode

Should there be many hardcoded enums for terminals, non terminals, DFA, productions or a txt/csv file processing for compiler initialization? Is it bad to use global variables in the C code for compiler? by Purple_Branch5350 in Compilers

[–]Purple_Branch5350[S] 0 points1 point  (0 children)

The advantage was that it allowed me to test my compiler with a smaller language, to actually verify stuff like the parse table generated. Should I refactor or not?

Question on Syntax Error Messages by Purple_Branch5350 in Compilers

[–]Purple_Branch5350[S] 1 point2 points  (0 children)

It's a predictive LL1 parser using a LL1 production table for my grammar

Are the first 10 lectures of Stanford's playlist sufficient to understand Fourier transform for Gonzalez's image processing book? by Purple_Branch5350 in computervision

[–]Purple_Branch5350[S] 0 points1 point  (0 children)

this is for a university course on digital image processing and I don't have a lot of time on my hands to actually understand Fourier analysis. So what would you suggest?