Week 3

 

Just to show what my code looks like. The code is suppose to run and check if the numbers can make a real right triangle. I'm trying to make the start of comments different so I made them"&" putting "!" instead of ";". I wanted to make a bit less similar to java. Keeping it simple so I can get further through the process and maybe make it more complex once I learn more. I'm now figuring out the BNF and structure of my code, which I have started. Its basically a copy and paste from the one we did in class except I'm trying to figure out what I want to be different.  For now I think the grammar looks fine, but after I finish the grammar I will try to make a parser.



This is how my scanner is formatted for right now. I might be hard to read, but I have been able to figure how to snip it or take partial screenshots so I can make it bigger.




Comments

  1. Nice work, though it could use a bit more elaboration.

    ReplyDelete

Post a Comment

Popular posts from this blog

Week 9

Week 10

Week 11