スクリプト勉強その1

Last-modified: 2008-08-24 (日) 21:59:12

コメント

  • JRuby
    • #で始まり、行末まで
    • 組み込みドキュメント
      =begin
       =begin から =endまで
      =end
  • jython
    • #で始まり、行末まで
  • Groovy
    • //で始まり、行末まで
    • Javaと同じように/* */も可能

予約語

  • JRuby(Ruby)
    BEGIN    class    ensure   nil      self     when
    END      def      false    not      super    while
    alias    defined? for      or       then     yield
    and      do       if       redo     true
    begin    else     in       rescue   undef
    break    elsif    module   retry    unless
    case     end      next     return   until
  • Jython
    and       del       for       is        raise
    assert    elif      from      lambda    return
    break     else      global    not       try
    class     except    if        or        while
    continue  exec      import    pass      yield
    def       finally   in        print
  • Goorvy(未確認)
    as       assert     break     case       catch
    class    continue   def       default    do
    else     extends    finally   for        if
    in       implements import    instanceof interface
    new      package    property  return     switch
    throw    throws     try       while

リファレンス

Ruby

jython,python

Groovy