Week3:

At the start of this week, I wasn't satisfied with the adding function since it wouldn't get rid of semicolons (go language doesn't use semicolons like other languages, except in for loops, and an spaces before/after the semicolon. For 2 and a half days I tried various methods and ideas to get it to work, and figured out that the way my algorithms worked they would get the position of the function, and the ast that is created in go doesn't see semicolons (since they aren't used). In order to get it to do what i wanted, I had to get the root node and have it check all the function, structs, and interface nodes and see if they were on the same line, and if so, replace the spaces/semicolon between them with a new line, which cleans up the coding and accounts for any amount of spaces before and after the semicolon. After finishing the project to what I think is finished, I have started learning how to make websites (both for this website and for a new project I'll work on where I create a website for the project).

Go Back to Journal entry page

Go Back to Main Page