Browse Source

Exceptions are supported with syntax "try {} catch (e) {}", "try {} ensure {}", and "raise e". Add catch to the list of words that can end an expression statement. Most runtime errors are reported using exceptions when EXCEPTIONS=1. Add String_repeat() supporting multiplying a string and an integer. Illegal escape sequence in a string is a warning not an error. Break and continue work properly in while(). ForFromTo evaluates its start and end arguments. Rename primitive fatal() to error().

master
Ian Piumarta 11 months ago
parent
commit
dcbef49750
1 changed files with 416 additions and 129 deletions
  1. +416
    -129
      minproto.leg

+ 416
- 129
minproto.leg
File diff suppressed because it is too large
View File


Loading…
Cancel
Save