468,317 Members | 1,521 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,317 developers. It's quick & easy.

Block Structure Parsing

Hi all, I'm new to this list because I had a question about parsing
python block structure. I am taking a programming languages course
this semester and for our final project we are writing an interperator
in scheme(awful language) for whatever language that we want. The
language that I want to do is one I have been designing for a little
while and it shares some syntactic features of Python; most notably
the block structure.

We are using SLLGEN which is able to parse LL(1) grammars and its
lexical scanner can parse regular expressions. I can't seem to think
of a way to put this kind of block structure into a regualr expression
so I am currently thinking of writing my own scanner to replace blocks
with indent/dedent tokens before calling SLLGEN.

Thanks in adv,
Michael Martz
--
Concentrate on the solution, not the problem.
http://www.ku.edu/~fencing
Oct 5 '06 #1
0 840

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bob Greschke | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.