diff --git a/website/monarch.html b/website/monarch.html index 5eb370d4..70a0582c 100644 --- a/website/monarch.html +++ b/website/monarch.html @@ -116,12 +116,12 @@
A language definition is basically just a JSON value describing various properties of your language. Recognized attributes are:
- +false
, boolean) Is the language case insensitive?. The regular expressions in the tokenizer use this to do case (in)sensitive matching, as well
as tests in the cases
construct."source"
, string) The default token returned if nothing matches in the tokenizer. It can be convenient to set this to "invalid"
during development of your colorizer to easily spot what is not matched yet."source"
, string) The default token returned if nothing matches in the tokenizer. It can be convenient to set this to "invalid"
during development of your colorizer to easily spot what is not matched yet.@brackets
and bracket
for more information. Each bracket definition is an array of 3 elements, or object, describing the open
brace, the close
brace, and the token
class. The default definition is:
[ ['{','}','delimiter.curly'], @@ -816,7 +816,7 @@ return { // Hint: Your program does not have to compute the sum and // max of the array, despite the suggestive names of the // out-parameters. -method M(N: int, a: array‹int›) returns (sum: int, max: int) +method M(N: int, a: array<int>) returns (sum: int, max: int) requires 0 <= N & a != null & a.Length == N; ensures sum <= N * max; {