Jaseci-Labs / jaseci

The Official Jaseci Code Repository
https://jaseci.org
155 stars 210 forks source link

[Bug] Syntax Error Bug #1405

Open kugesan1105 opened 1 week ago

kugesan1105 commented 1 week ago

Correct Syntax Example:

obj Shape {
    has :priv shape_type: ShapeType;

    has :protect radius: float,
        area: float;

    has name: str;
}

Unexpected Behavior:

obj Shape {
    has shape_type: ShapeType int; # It should generate syntax error but it does not 
                    #ShapeType int Interpreted as a Comparison Expression 
}

image

obj Shape {
   # has shape_type: ShapeType str;  #will genrate syntax error 
}

image