in reply to entity relationship modeling

I've been batting this sort of thing around for a compiler (not perl) and like Zaxo says, it translates into an "assign" operation. In more detail, it becomes:

left-value operator expression

which roughly translates into a conceptual function like assign(left-value, eval(expression)). As to assigning relationships, the parser builds a tree. I'm not familiar with perl's tree, but it would probably look a little like this:

= / \ x 1

That is, the '=' is the important parent and the x and the 1 are arguements to it.

Is that what you were looking for?

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: entity relationship modeling
by moo (Acolyte) on Dec 15, 2001 at 10:33 UTC
    thanks for the reply jeremy!
    
    what is (are) your source(s) for the above?
    
    thanks,
    
    moo
    
      At first I fumbled around and got it by accident. Then I found a post by Brent Dax on the Perl 6 mailing list called "babyperl.pl" which is a mini perl parser, and took that apart.

      I also have some books, one by Niklaus Wirth called "Compiler Construction". Check the comp.compilers homepage for Jack Crenshaw's excellent "Let's write a compiler" online tutorial. The page also has other resources that are very handy indeed.

      Finally, /msg me... I'm in the middle of writing a pascal compiler so I'm facing the same issues you are looking at.

      ____________________
      Jeremy
      I didn't believe in evil until I dated it.