Block Structure Parsing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Blacktiger

    #1

    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.
    Through innovative research and the constant pursuit of knowledge, KU powers Kansas and transforms the world.

Working...