Skip to content

Grammar

Positron edited this page Mar 3, 2015 · 13 revisions
library:
   region-body
   (empty)

region:
   region region-name { }
   region region-name { region-body }

region-name:
   identifier
   region-name :: identifier

region-body:
   region-item
   region-body region-item

region-item:
   region
   import-statement
   directive
   declaration
   script
   ;

Keywords

Certain identifiers are reserved by the language and are used in specific ways. They cannot be used as names for your own objects. These identifiers are:

  1. bluereturn
  2. bool
  3. break
  4. case
  5. clientside
  6. const
  7. continue
  8. createtranslation
  9. death
  10. default
  11. disconnect
  12. do
  13. else
  14. enter
  15. enum
  16. false
  17. for
  18. function
  19. global
  20. goto
  21. if
  22. import
  23. int
  24. lightning
  25. net
  26. open
  27. pickup
  28. redreturn
  29. region
  30. respawn
  31. restart
  32. return
  33. script
  34. static
  35. str
  36. struct
  37. suspend
  38. switch
  39. terminate
  40. true
  41. unloading
  42. until
  43. upmost
  44. void
  45. while
  46. whitereturn
  47. world

--

The following identifiers are reserved but are not used:

  1. fixed
  2. special

--

The following identifiers are no longer reserved and can be used as names for your own objects:

  1. acs_executewait
  2. define
  3. encryptstrings
  4. hudmessage
  5. hudmessagebold
  6. include
  7. libdefine
  8. library
  9. log
  10. nocompact
  11. nowadauthor
  12. print
  13. printbold
  14. strcpy
  15. strparam
  16. wadauthor
Clone this wiki locally