Loading ...
Sorry, an error occurred while loading the content.

Re: [pcgen] Re: [DOCS] JEP formulas

Expand Messages
  • Eric Beaudoin
    ... My bad, I tought it was possible to modify the JEP grammar as long as it didn t create any ambiguities. Back to
    Message 1 of 35 , Jul 1, 2004
      At 19:47 2004.07.01, Michael Tucker wrote:
      >From: Michael Tucker <mtucker@...>
      >[Frugal wrote:]
      >>> It would be fairly trivial to add if-then-else constructs to JEP. ...
      >>> example:
      >>> if( CL>=4, CL-1, CL)
      >[Eric Beaudoin replied:]
      >> If we need a if-then-else operator, I think we shoul use the very
      >> commun <logical-expression>?<expression-if-true>:<expression-if-false>
      > ...snip...
      >>... is assign the 0 value.
      >> result = parameter <> -1 ? parameter : 0
      >> Éric "Space Monkey" Beaudoin (hiding in the trench)
      >Be very careful: you are proposing a custom syntax which must be
      >somehow handled in a pre-parser, unless I've misunderstood how JEP
      >works. As I've mentioned, that path is a slippery slope.
      >True, the syntax you propose is somewhat common (among specific
      >programming languages). But it will have to be parsed, rather than
      >handled as a JEP function call. Or else JEP must somehow be customized
      >to handle this alien (to it) syntax.
      >This sets the stage for adding more "gee this would be neat" features
      >to a pre-parser. The next thing you know, your pre-parser is bigger
      >than the function it feeds, and you've lost all the benefits of
      >switching to a standards-based expression handler in the first place.
      >It also creates an ongoing code-maintenance hassle every time JEP is
      >Also (before Tir beats me to the punch): the stuff we want to put in
      >LST files is mostly descriptions of objects (equipment, characters,
      >classes, spells, etc.). LST is mostly an object description language.
      >Sometimes it's handy to embed a formula in one of those descriptions.
      >Just be careful not to "blow up" the scope of the LST file handler by
      >wanting it to be a programming language (e.g. logic statements such as
      >if-then-else blocks, for() and while() loops, etc.). Here, there be

      My bad, I tought it was possible to modify the JEP grammar as long as it didn't create any ambiguities.

      Back to if(<logical-expression>,<expression-if-true>,<expression-if-false>) then.

      Éric "Space Monkey" Beaudoin (hiding in the trench)
      >> In space, no one can hear you sleep.
      >> Camels to can climb trees (and sometime eat them).
    • Guillermo Llosa
      ... If I remember correctly (no guarantee) but a--e.com was exactly right.
      Message 35 of 35 , Jul 7, 2004
        Mark Coletti wrote:

        > On Fri, 02 Jul 2004 08:45:25 -0700, Kevin Brown
        > <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.
        > MAC
        > --
        > 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:
        > http://rpg.plambert.net/pcgen/current/_docs/
        > *Yahoo! Groups Sponsor*
        > click here
        > <http://us.ard.yahoo.com/SIG=129aj5q7s/M=295196.4901138.6071305.3001176/D=groups/S=1705016061:HM/EXP=1089240609/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>
        > ------------------------------------------------------------------------
        > *Yahoo! Groups Links*
        > * To visit your group on the web, go to:
        > http://groups.yahoo.com/group/pcgen/
        > * To unsubscribe from this group, send an email to:
        > pcgen-unsubscribe@yahoogroups.com
        > <mailto:pcgen-unsubscribe@yahoogroups.com?subject=Unsubscribe>
        > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
        > Service <http://docs.yahoo.com/info/terms/>.
        If I remember correctly (no guarantee) but a--e.com was exactly right.
      Your message has been successfully submitted and would be delivered to recipients shortly.