Re: [pcgen] [DOCS] JEP formulas
- The problem is that JEP isn't a programming language ... it's a formula
parser. For JEP, [3,5,9]*7 isn't an array lookup...it's a math operation. I
think JEP lets you do matrices with ['s as well.
We've gone to some lengths to avoid changing the parser, which is developed
by someone else. And it's probably a good idea, as I think Java Kensai said,
to avoid pre-parsers...as you quickly start adding functionality to the
pre-parser and end up with a messy syntax again.
On the other hand, we can easily extend the JEP syntax with function calls.
CL could be, for instance, a function call: cl("Fighter").
What we need to do is figure out how to use the JEP capabilities to build a
clean, documentable syntax. CL=Fighter isn't a valid variable name in any
language I know of...it's just kind of confusing. In some ways, Fighter.CL
would even make more sense.
Quoting David Finch <david.finch@...>:
> To me the index of an array is a 'lookup' operator so using the  make
> sence once you stop thinking of it as only an index.
- Mark Coletti wrote:
> On Fri, 02 Jul 2004 08:45:25 -0700, Kevin BrownIf I remember correctly (no guarantee) but a--e.com was exactly right.
> <kevin_brown@...> wrote:
> > >>http://gmgen.sourceforge.net/wiki/
> > >>
> > >>I just hit that website, and the links are full of hard-core porn
> > >>sites... someone might wanna check into that.
> > >
> > >
> > > Deleted!
> > > That is so not cool.
> > The changes should be able to be rolled back thanks to it being a
> wiki page, heheh.
> QuantumGIS had the same problem recently. In fact, I wonder if it was
> the same asshat. Was the offender posting links hosted by a--e.com,
> which is Russian?
> QuantumGIS locked down its WIki. It's a PITA, but was necessary.
> Apparently this had occured regularly.
> I'm taking reality in small doses to build immunity.
> PCGen's release site: http://pcgen.sourceforge.net
> PCGen's alpha build: http://rpg.plambert.net/pcgen
> PCGen's FAQ:
> *Yahoo! Groups Sponsor*
> click here
> *Yahoo! Groups Links*
> * To visit your group on the web, go to:
> * To unsubscribe from this group, send an email to:
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.