JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
280 stars 64 forks source link

keyword repeat usage #167

Closed badiku closed 3 months ago

badiku commented 3 months ago

hi, from manual I only see for and while for loop control,

but why repeat is also a keyword, I can not use it as an identifier.

only reserved ?

> repeat
Compiler Error: unexpected keyword 'repeat' at start of line [line 1]
> repeatd
Runtime Error: Undefined Identifier: 'repeatd' is unknown in this context [line 1]
> repeated
Runtime Error: Undefined Identifier: 'repeated' is unknown in this context [line 1]
> a={}
> a.repeat=4
Compiler Error: got Keyword(repeat) where Identifier is required [line 1]
Withered-Flower-0422 commented 3 months ago

Yep, repeat is reserved for future using, currently no usage.

JoeStrout commented 3 months ago

That is correct.