fxarrays.bis

来自「用VB实现的编译器的源代码」· BIS 代码 · 共 39 行

BIS
39
字号
class AssociativeArray
  
  <definitions>
  
  variable UBound
    Integer;;
    [@-1];;
  end variable

  variable LBound
    Integer;;
    [@-1];;
  end variable

  method setValue
    2;;
    Key;;
    Value;;
  end method

  method getValue
    1;;
    Key;;
  end method

  <methods>

  method void setValue
    set this.TempMember [#Value];;
    delegate TempMember >> ["ArrayData(" & #Key & ")"];;
  end method
    
  method function getValue
    delegate TempMember << ["ArrayData(" & #Key & ")"];;
    return [:this.TempMember];;
  end method

end class

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?