Search found 97 matches

by spir
October 15th, 2009, 3:33 pm
Forum: WML Workshop
Topic: precisions on WML grammar
Replies: 27
Views: 1773

Re: precisions on WML grammar

Lol I'm guessing from your quiz WML doesn't follow standard order of operations? It's either 5 or 6. I'm going with 6 because 5 is the real world answer and WINR. :lol2: Well, if it didn't apply precedence, the result of evaluation would be 5 anyway ;-) For me, strictly speaking, the value of $(wha...
by spir
October 15th, 2009, 11:20 am
Forum: WML Workshop
Topic: precisions on WML grammar
Replies: 27
Views: 1773

Re: precisions on WML grammar

Hello, Here is an attempt at defining a formal grammar for WML, at both mophology and syntax levels. Well, I wrote: "an attempt" ;-) (mainly because I have no source specification, and I won't test it -- yet). The grammar itself uses a custom PEG -like language, namely: pijnu , I guess you will unde...
by spir
October 14th, 2009, 3:24 pm
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

Re: WML semantic structure -- project

Ok, done a draft version. The WML parser is now able to cope with metadata "notes". To be short, while parsing a section (that's all it does!), it parses and stores notes as pseudo-items; then when the section node is created, they are attached to (following) "real" items, and removed. The section n...
by spir
October 14th, 2009, 8:59 am
Forum: WML Workshop
Topic: Angry elemental - CREATE UNIT ABILITY that work !
Replies: 9
Views: 2794

Re: Angry elemental - CREATE UNIT ABILITY that work !

After reflexion...... it could be better for easy distribution to make ALL in english. so i will translate myself all names and description. It will be a little bad and i will ask help here, if someone will is ok for corrections. It seem to be the best solution. But it's not for now, later, when fa...
by spir
October 14th, 2009, 8:22 am
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

Re: WML semantic structure -- parsing

My rationale, is that, while it's a lot of work (and an easily forgotten task) to add their changes to the wiki (it can be a tough problem just to find *where* to add the changes, in some cases, and it's easy to miss something), it's a much easier task to add specifically-structured comments, right...
by spir
October 14th, 2009, 7:44 am
Forum: WML Workshop
Topic: precisions on WML grammar
Replies: 27
Views: 1773

Re: precisions on WML grammar

@ silene: Thank you very much for this complete and accurate answer. I will study the question as soon as I have time (I first need to go on the topic pointed in initial post), then try to write a wiki page draft. @ all: Upon the question of type system, well, I guess that relevant discussion and re...
by spir
October 13th, 2009, 7:21 am
Forum: WML Workshop
Topic: precisions on WML grammar
Replies: 27
Views: 1773

precisions on WML grammar

Hello, I'm looking for some more information about WML grammar features, rather on morphological level (wiki page syntaxWML is nearly enough on syntax). This is partly for writing content, partly for grammar parsing and semantic validation (thread) . Actually, I'm close to 100% sure on some of the i...
by spir
October 12th, 2009, 11:31 am
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

Re: WML semantic structure -- parsing

Waow! I'm surprised this can simply be done. Let me check whether I really understand what you script does: It looks for funcs which name starts with WML_HANDLER_FUNCTION, then reads & outputs the rest of the funcname and the list of args. Correct? Then we have a list of tags (in the sense of types ...
by spir
October 11th, 2009, 10:01 pm
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

generating semantic schemas & reference guide templates

Holà again, My brain is exploding these days ;-) The previous post has let me further think about this question of lack of real reference for WML. And the result is: let's generate automatically draft semantic schemas from typical code and let's generate reference guide templates from semantic schem...
by spir
October 11th, 2009, 8:25 pm
Forum: WML Workshop
Topic: resource files and dirs in campaign file
Replies: 6
Views: 509

Re: resource files and dirs in campaign file

Thank you very much, solsword. I fully endorse the above post. :eng: I'm not sure how related it is to the topic since I'm not sure what spir was after exactly, but it's a good explanation nevertheless. Well, I needed a clear, precise, complete explanation of the topic, thus the bunch of questions. ...
by spir
October 11th, 2009, 5:20 pm
Forum: WML Workshop
Topic: resource files and dirs in campaign file
Replies: 6
Views: 509

resource files and dirs in campaign file

Hello, I'm not sure at all to understand how external files and dirs should be declared -- or not--; how, why, what for; and how these data are then (pre)processed, how the content of files and dirs are included or how they interact with the main config files (eg [scenario]), how the game engine cop...
by spir
October 11th, 2009, 4:26 pm
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

Re: WML semantic structure -- parsing

Hello again, I realize now that when replying to questions about the purpose of semantic schema & validation, I simply forgot to mention what's probably the most important: a reference . I guess WML crually misses any kind of reference manual or more technical specification; to deal as "bible" for u...
by spir
October 11th, 2009, 3:13 pm
Forum: Technical Support
Topic: control keys don't work
Replies: 7
Views: 722

Re: control keys don't work

I know... I asked what happens when you try to assign a hotkey with ctrl in it. If that doesn't work the key doesn't even reach wesnoth. ... and you were right to ask, indeed! ;-) Well, when trying this, the "control" part does not appear. Eg "control+a" shows as "a". Hum... I'll test if it works, ...
by spir
October 11th, 2009, 3:02 pm
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

Re: WML semantic structure -- parsing

Holà, I have stepped to the next stage, namely the study of a "meta-language" to express WML's semantic schema -- but this time "meta-using" WML itself. Below a summary of my thoughts on the topic. thanks for reading, denis WML semantic schema language Study to define a language able to clearly spec...
by spir
October 10th, 2009, 7:45 pm
Forum: Coder’s Corner
Topic: WML semantic structure -- parsing
Replies: 24
Views: 5183

Re: WML semantic structure -- parsing

Right, I've done it anyway, at least a draft version. There are two modules, one for grammatical parsing, one for semantic validation. It's rather extensively commented and there are test examples in each file. Instead of once more writing about it, here are the top file doc texts for each. ''' WML ...