ObjectLiteral -> Obj, ArrayLiteral -> Arr

This commit is contained in:
Jeremy Ashkenas
2010-10-24 11:35:47 -04:00
parent 55bf6450e7
commit cecae0f965
6 changed files with 46 additions and 46 deletions

View File

@@ -264,7 +264,7 @@ grammar =
# In CoffeeScript, an object literal is simply a list of assignments.
Object: [
o "{ AssignList OptComma }", -> new ObjectLiteral $2
o "{ AssignList OptComma }", -> new Obj $2
]
# Assignment of properties within an object literal can be separated by
@@ -347,8 +347,8 @@ grammar =
# The array literal.
Array: [
o "[ ]", -> new ArrayLiteral []
o "[ ArgList OptComma ]", -> new ArrayLiteral $2
o "[ ]", -> new Arr []
o "[ ArgList OptComma ]", -> new Arr $2
]
# The **ArgList** is both the list of objects passed into a function call,