1
0
forked from Mirror/wren

Introduce Attributes (#962)

* introduce Attributes for classes and methods
This commit is contained in:
ruby
2021-04-08 21:30:09 -07:00
committed by GitHub
parent 5244a9d001
commit a4ae905384
20 changed files with 713 additions and 11 deletions

View File

@ -169,6 +169,10 @@ OPCODE(FOREIGN_CONSTRUCT, 0)
// the name of the class. Byte [arg] is the number of fields in the class.
OPCODE(CLASS, -1)
// Ends a class.
// Atm the stack contains the class and the ClassAttributes (or null).
OPCODE(END_CLASS, -2)
// Creates a foreign class. Top of stack is the superclass. Below that is a
// string for the name of the class.
OPCODE(FOREIGN_CLASS, -1)