18 May 2002 06:59
next language to be supported by semantic
Richard Y. Kim <ryk <at> dspwiz.com>
2002-05-18 04:59:04 GMT
2002-05-18 04:59:04 GMT
Greetings, I think the best way for me to gain active understanding of all aspects of semantic is to go through the process of writing the parser for a new language. I plan to improve semantic documentation as I go along. Python seems like a good choice. It seems to be popular, and so I am interested in learning it. Perl's hairy syntax is too much for me to even consider it. Before I jump in, I thought I should ask your comments. Any thoughts? _______________________________________________________________ Hundreds of nodes, one monster rendering program. Now that's a super model! Visit http://clustering.foundries.sf.net/
I defined a new buffer local option `semantic-flex-enable-indents'.
When non-nil `semantic-flex' catches indentation (at beginning of
lines) and inserts corresponding pseudo-syntactic 'indent tokens in
the returned token stream. I called such tokens pseudo-syntactic ones
because they don't actually match data in the input source
(`semantic-flex' don't move the point when it catches one).
I used the form (indent . N), where N is the `current-indentation'
value, because I think it could be more useful than a token of the
form (indent START . END). Particularly because the true indentation
value can be different of (- END START) when there are tab characters.
Thus, after evaluating something like this:
(let ((semantic-flex-enable-indents t)
(semantic-flex-enable-whitespace t))
(semantic-flex-buffer))
it is possible to get the following stream:
((indent . 8) (whitespace 1 . 2) (symbol 2 . 5))
from a buffer containing:
RSS Feed