need help with starting with writing a spec

63 views
Skip to first unread message

szcze

unread,
Dec 16, 2023, 11:54:38 PM12/16/23
to tlaplus
Hello, I am a beginner and I am only starting to learn the concepts. I need to write a specification for a parser, and as far as I understand the only way to model the input stream of tokens is by using sequences. That is, I have to give a specific sequence of tokens to my model and run the model on this sequence. But any such sequence limits the ability of TLA+ to enumerate all possibilities and help me find problems in my spec. I would have to give manually generate a set of possible inputs for my model and try them one by one, I think, to be able to "exercise" all possible behaviors. Is what I am saying correct? Would someone please comment on this and point me in the right direction?

szcze

unread,
Dec 17, 2023, 12:05:56 AM12/17/23
to tlaplus
I want to add to what I said. I think that grammars for my parser should be modeled as sequences too. So I would need to give a specific grammar to the model as well and this would be even more limiting... Perhaps I do not understand how to specify something like this effectively... Please help.

суббота, 16 декабря 2023 г. в 23:54:38 UTC-5, szcze:

Stephan Merz

unread,
Dec 17, 2023, 1:36:43 PM12/17/23
to tla...@googlegroups.com
The grammars in the collection of standard examples [1] may be of interest to you. Note, however, that TLA+ may not be the most suitable language for specifying grammars and parsers.

Stephan

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/b8ebd8a7-05a7-4301-814f-e3bd6a810d25n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages