syntax: "super" is a synonym of "special"
authorJean Privat <jean@pryen.org>
Thu, 11 Mar 2010 16:42:00 +0000 (11:42 -0500)
committerJean Privat <jean@pryen.org>
Thu, 11 Mar 2010 16:42:00 +0000 (11:42 -0500)
commit49e7358756c8b7bf00c36a96ac5f70010db4255d
treeba4bda9fe345b830e07058fdc68729215da96fff
parentdc71ae49f0d7482e41feecc3de6abf636b0e4def
syntax: "super" is a synonym of "special"

Nit syntax is declarative with nouns.

Examples:
  "class X" -> X is a class
  "fun x" -> x is a function of the class
  "var _x" -> _x is an instance variable of the class
  "init x" -> x is a constructor of the class

Therefore, it can make sense that the declaration
of superclasses use the same scheme.

  "super Y" -> Y is a superclass of the class
instead of the current
  "special Y" -> the class specializes Y
                (or the class is a special kind of Y)

Signed-off-by: Jean Privat <jean@pryen.org>
misc/vim/syntax/nit.vim
src/parser/nit.sablecc3xx
src/parser/parser.nit
src/parser/parser_abs.nit
src/parser/parser_nodes.nit
src/parser/parser_prod.nit
src/parser/parser_tables.nit