You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails to parse e.g. Morph class >> #vectorAdditions
vectorAdditions
"Answer slot/command definitions for the vector experiment"^ # (
(slot x 'The x coordinate'Number readWrite Player getX PlayersetX:)
(slot y 'The y coordinate'Number readWrite Player getY PlayersetY:)
(slot heading 'Which direction the object is facing. 0 is straight up'Number readWrite Player getHeading PlayersetHeading:)
(slot distance 'The length of the vector connecting the origin to the object''s position'Number readWrite Player getDistance PlayersetDistance:)
(slot theta 'The angle between the positive x-axis and the vector connecting the origin to the object''s position'Number readWrite Player getTheta PlayersetTheta: )
(slot headingTheta 'The angle that my heading vector makes with the positive x-axis'Number readWrite Player getHeadingTheta PlayersetHeadingTheta:)
(command +'Adds two players together, treating each as a vector from the origin.'Player)
(command -'Subtracts one player from another, treating each as a vector from the origin.'Player)
(command *'Multiply a player by a Number, treating the Player as a vector from the origin.'Number)
(command /'Divide a player by a Number, treating the Player as a vector from the origin.'Number)
(command incr:'Each Player is a vector from the origin. Increase one by the amount of the other.'Player)
(command decr:'Each Player is a vector from the origin. Decrease one by the amount of the other.'Player)
(command multBy:'A Player is a vector from the origin. Multiply its length by the factor.'Number)
(command dividedBy:'A Player is a vector from the origin. Divide its length by the factor.'Number)
)
The Smalltalk grammar defines the following rule for literal arrays:
Ohm-S/packages/Ohm-Grammars.package/OhmSmalltalk.class/class/serializedGrammar.st
Lines 76 to 77 in 98bf92f
This fails to parse e.g.
Morph class >> #vectorAdditions
The rule should probably be:
The text was updated successfully, but these errors were encountered: