Menu

command line interpreter?

bblochl2
2009-07-21
2013-05-28
  • bblochl2

    bblochl2 - 2009-07-21

    I found seed7 and found it to my surprise as a astonishing high potential language.  I will do some work in the future for scientific applications to check the limits in detail.

    There are some other interpreter languages available. Some offer a more or less comfortable command line interpreter. i. e. python, ruby, lua ( as far as I remember), Io ...etc.

    Are there any plans to make such a REPL (Read-eval-print loop) available for seed7? Is that feasable? May be it is not - I cannot check that myself I am just a simple minded user. I am comfortable with the existing version, but for experimenting teaching/learning sometimes a line interpreter is useful and appealing for potential users.

    Thanks for making available seed7 to the public! Great work!

    Regards bitu

     
    • Thomas Mertes

      Thomas Mertes - 2009-07-24

      On 2009-07-21 20:53 bblochl2 wrote:
      > I found seed7 and found it to my surprise as a astonishing high potential language.

      Thank you.

      > I will do
      > some work in the future for scientific applications to check the limits in detail.

      Great. If you need support, just ask. Maybe you can tell me about the features or
      libraries you need. This way there is time to add possible missing things.

      > There are some other interpreter languages available. Some offer a more or less
      > comfortable command line interpreter. i. e. python, ruby, lua ( as far as I remember),
      > Io ...etc.

      The Seed7 (hi) interpreter has no interactive mode built in.

      > Are there any plans to make such a REPL (Read-eval-print loop) available for seed7?
      > Is that feasable?

      Yes. Currently the Seed7 package contains the 'calc.sd7' example program. It is a very
      simple implementation of a read-eval-print loop. Calc reads a line and copies it into the
      writeln statement of a small program. This program is parsed and executed afterwards. The
      current version acts very unfriendly when errors occur. In the next version I will add a
      check for errors and avoid executing the progam when errors happen. The possibilitys to
      edit an expression in 'calc.sd7' are also limited and there is no history which would
      allow to edit a previous command.

      Note that 'calc.sd7' does not allow declarations. Due to creating a new program
      for every input line there is no possibility to use a declaration in a later
      expression. I will think over a smarter concept to allow such tings, but this will
      take some time.

      > May be it is not - I cannot check that myself I am just a simple minded user. I
      > am comfortable with the existing version, but for experimenting teaching/learning
      > sometimes a line interpreter is useful and appealing for potential users.
      >
      > Thanks for making available seed7 to the public! Great work!

      My pleasure.

      Greetings Thomas Mertes

      Seed7 Homepage:  http://seed7.sourceforge.net
      Seed7 - The extensible programming language: User defined statements
      and operators, abstract data types, templates without special
      syntax, OO with interfaces and multiple dispatch, statically typed,
      interpreted or compiled, portable, runs under linux/unix/windows.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.