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

Re: [tlaplus] Toolbox Plugin development



Oh, that is a great relief. My humble apologies for my strong language, and thanks for the pointers to better resources.

It is a relief to think that no-one thinks that this kind of JSON would be a good way to create a grammar.
That doesn't explain XSLT, of course.
/me ducks :)

Chapter 15 is especially useful. I'll see if I can finally establish the common semantic elements TLA+ has with my Constellation Query Language (which has no temporal aspect, but does handle FOL).

Clifford Heath.

> On 6 Sep 2021, at 2:11 pm, Andrew Helwer <andrew.helwer@xxxxxxxxx> wrote:
> 
> The JSON is auto-generated. The files you're looking for are grammar.js and src/scanner.cc for the context-sensitive parts of the language.
> 
> You can find the language spec for TLA+2 on this page: http://lamport.azurewebsites.net/tla/tla2.html 
> 
> Andrew
> On Saturday, September 4, 2021 at 6:51:16 PM UTC-7 cliffor...@xxxxxxxxx wrote:
> As a languages geek, I had heard of tree-sitter, but had never actually looked at it. 
> 
> Wow... It just totally freaks me out that someone who has the ability and desire to build a parser generator sees fit to use JSON as the input syntax. 
> I just cannot get that level of insanity into my head. I mean, I can understand XML folk abusing XML like that, but this is a *parser* person using *JSON*. 
> It's nuts. 
> 
> Is there a more readable syntax for TLA+ somewhere? 
> 
> Clifford Heath. 
> 
> > On 5 Sep 2021, at 1:23 am, Andrew Helwer <andrew...@xxxxxxxxx> wrote: 
> > 
> > You may also be interested in using the TLA+ tree-sitter grammar: https://github.com/tlaplus-community/tree-sitter-tlaplus/ 
> > 
> > Andrew 
> > 
> > On Thursday, September 2, 2021 at 4:40:48 AM UTC-7 zhin...@xxxxxxxxx wrote: 
> > At present, we are preparing to develop a plug-in for TLA+ Toolbox, which is mainly used for automatic prompting of TLA+ grammar and format checking and prompting. Are there relevant plug-in development materials? 
> > 
> > -- 
> > 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...@xxxxxxxxxxxxxxxx. 
> > To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/1cae9f6e-a19e-4ccf-8dff-8d3d07287a5an%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/b01d73a1-ba8f-4dd1-91e8-22ab394da0dcn%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/18E0E91F-3407-4197-97B3-D4D2304F1747%40gmail.com.