[twdev] Re: Understanding TW code

2018-03-05 Thread PMario
On Monday, March 5, 2018 at 12:21:08 PM UTC+1, PMario wrote: > > > Parsing the wiki-syntax has 2 modes: > > - Inline-mode which is used for eg: ''bold'' or //italic// and > - Block-mode which is used for eg: paragraphs, bullet lists, numbered > lists and so on. > uups forgot one important

[twdev] Re: Understanding TW code

2018-03-05 Thread PMario
On Sunday, March 4, 2018 at 4:52:18 PM UTC+1, joearms wrote: > > ... > I found this code: (it's as is and unformatted since I > don't know when I can add white space or even line feeds) > > > \define journalButton() > <$button tooltip={{$:/language/Buttons/NewJournal/Hint}} >

[twdev] Re: Understanding TW code

2018-03-05 Thread PMario
On Sunday, March 4, 2018 at 4:52:18 PM UTC+1, joearms wrote: > > I'm trying to understand how to program the TW - right now what I'm doing > is reading the source of individual tiddlers and guessing what the > code means. > > This is a rather time consuming process, and unsatisfactory, to the >

[twdev] Re: Understanding TW code

2018-03-04 Thread joearms
On Sunday, 4 March 2018 20:10:33 UTC+1, Simon Huber wrote: > > >> And a followup question.- I searched for semantics evaluation etc. but no >> hits. >> >> Is there a description of how a tiddler gets turned into HTML? >> >> If I were to implement this I'd be thinking >> >> tokenize -> parse ->

[twdev] Re: Understanding TW code

2018-03-04 Thread Simon Huber
> > > And a followup question.- I searched for semantics evaluation etc. but no > hits. > > Is there a description of how a tiddler gets turned into HTML? > > If I were to implement this I'd be thinking > > tokenize -> parse -> transform -> render > > After parsing I'd get an abstract syntax

[twdev] Re: Understanding TW code

2018-03-04 Thread joearms
On Sunday, 4 March 2018 19:11:43 UTC+1, Mat wrote: > > Hi Joe. > > You have much, and good, documentation at tiddlywiki.com > (I'm curious, for constructive purposes: How come you have not seen this?) > I have and I keep a local copy and search in it. > > Some specific questions of yours: >

[twdev] Re: Understanding TW code

2018-03-04 Thread Mat
Hi Joe. You have much, and good, documentation at tiddlywiki.com (I'm curious, for constructive purposes: How come you have not seen this?) Some specific questions of yours: I guess that > > \define journalButton() > ... > \end > > defines a macro -- and that <> evaluates the macro > Correct.