js94065 / scomp

Automatically exported from code.google.com/p/scomp
0 stars 0 forks source link

Implement semantic rule 9 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Rule: An <id> used as a <location> must name a declared local/global variable 
or formal parameter.

Don't forget the tests.

Original issue reported on code.google.com by codistm...@gmail.com on 2 Aug 2010 at 5:36

GoogleCodeExporter commented 9 years ago

Original comment by luuwil...@gmail.com on 3 Aug 2010 at 3:55

GoogleCodeExporter commented 9 years ago

Original comment by luuwil...@gmail.com on 6 Aug 2010 at 6:01

GoogleCodeExporter commented 9 years ago

Original comment by luuwil...@gmail.com on 6 Aug 2010 at 6:23

GoogleCodeExporter commented 9 years ago
Rule 9 exactly like Rule 2

Original comment by luuwil...@gmail.com on 16 Aug 2010 at 5:58

GoogleCodeExporter commented 9 years ago
Rule 9 is not like rule 2.

<id> can be used for method names, and rule 9 says that a method name cannot be 
used as a location.

I'm not sure why the rule is worded like that.
Maybe it has to do with the "Program" identifier (the specification is 
ambiguous on its nature).

Original comment by codistm...@gmail.com on 16 Aug 2010 at 10:33

GoogleCodeExporter commented 9 years ago
Okay. That makes a whole lot of sense now.

Original comment by luuwil...@gmail.com on 17 Aug 2010 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by luuwil...@gmail.com on 18 Aug 2010 at 6:54