akhanss / datapath

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

Variable name cannot be GLA #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a relation where one of the variables' name is "GLA"
2.
3.

What is the expected output? What do you see instead?
A variable's name cannot be GLA.
./inFile.pgy(625)  : error 1 : Unexpected token, at offset 1
    near [Index: 8330 (Start: -268395350-Stop: -268395348) ='GLA', type<52> Line: 625 LinePos:1]

Line 625 in inFile.pgy is as follows:
 GLA: DOUBLE,

What version of the product are you using? On what operating system?
current version, Fedora

Please provide any additional information below.

Original issue reported on code.google.com by joostimp...@gmail.com on 31 Aug 2012 at 7:32

GoogleCodeExporter commented 9 years ago
GLA is a keyword in Piggy. The parser will not allow you to name a variable the 
same thing as a keyword. Most languages that I know of don't allow you to do 
this, so I don't think this is a bug.

Original comment by Luminaire1202 on 31 Aug 2012 at 8:59

GoogleCodeExporter commented 9 years ago
thanks, that makes sense!

Original comment by joostimp...@gmail.com on 31 Aug 2012 at 11:08

GoogleCodeExporter commented 9 years ago

Original comment by Luminaire1202 on 18 Sep 2012 at 2:14