[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Re: Parse Error



Hi Khoa,

What are you learning TLA+ from? Start with a spec in that book and change it to be like what you want. Then you'll see the right syntax for things and get fewer parse errors.

H

On 1/23/2023 1:20 AM, Clifford Heath wrote:
Also, Integers or Intergers?

Clifford Heath

On Mon, 23 Jan 2023, 16:36 hornace...@xxxxxxxxx, <hornacek.martin@xxxxxxxxx> wrote:
Hi,

here are some things to have a look at.
  1. First of all, you have a trailing comma after the Order constant
  2. Second, I hope you spec is properly structured and contains the sequence of "=" to properly mark the ending of the module
  3. What are you trying to declare with the variables, is your intention to declare some arrays of given length?
M.

Dátum: nedeľa 22. januára 2023, čas: 23:45:34 UTC+1, odosielateľ: Khoa Goodwill
Hi I am getting thiis error and do not know what it is? 

--------------------------- MODULE StorageEngine ---------------------------
EXTENDS TLC, Intergers, Sequences

CONSTANTS
MaxKeys, Order,

VARIABLES
    values[0..MaxKeys-1],
    versions[0..MaxKeys-1],
    deleted[0..MaxKeys-1],
    keys[0..MaxKeys-1]
    
--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/fddd802e-b36f-4778-9a53-89299496c51bn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/CAPnXPY06dsxjgigtOsOcdcZQnZXYdH56kCnxXxqpiueR9gLzzQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/7799dcbb-05c2-c772-0983-28b72a225d8e%40gmail.com.