• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

Lines with "too many inputs" error don't run funcs before

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#250 Lines with "too many inputs" error don't run funcs before

v_6.06x
closed-fixed
David Costanzo
Language Engine (245)
1
2026-07-28
2006-11-25
David Costanzo
No

If you have a line like this:

FD 100 RT "bad

The turtle moves forward 100 steps, then throws a "RT doesn't like bad as input" error. However, if you have a different sort of error, like this:

FD 100 (RT 90 "bad)

The turtle does not move.

An implementation detail such the fact that FMSLogo runparses instructions line-by-line, instead of instruction-by-instruction, shouldn't cause a behavioral different than is exposed to the programmer. Ideally, there would be no different in how the different errors are handled.

This bug (if you don't consider is a feature) is present in UCBLogo, too. It is mildly annoying to purists, but I don't think it's a big deal. It may never get fixed. Still, I'm filing for tracking purposes.

How Reproducible:
Every Time

Steps to Reproduce:
FD 100 (RT 90 "bad)

What Happens:
The turtle doesn't move.
Logo throws a "too much inside ()" error.

Expected Result:
The turtle moves forward 100 steps.
Logo throws a "too much inside ()" error.

Related

Bugs: #481

Discussion

  • David Costanzo

    David Costanzo - 2026-06-06

    I have committed [r6266], which fixes the exact bug cited in the repro. This fix will be available in FMSLogo 8.6.0.

    There are other, similar parsing errors that my fix doesn't cover, like when there's a stray closing paren as in FD 100 ). A complete fix would remove all code paths which throw an error from paren_expr and the functions that it calls. I'm going to keep this bug open for now to see if I can fix those, as well.

     

    Related

    Commit: [r6266]

    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2026-07-28
    • status: open --> closed-fixed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2026-07-28

    FORWARD 100 ( was fixed by [r6267].
    FORWARD 100 5**6 was fixed by [r6268].
    FORWARD 100 ) was fixed by [r6272].
    FORWARD 100 5* was fixed by [r6274].

    FORWARD) now throws a "not enough inputs to FORWARD" error instead of an "Unexpected ')'" error.

    These fixes will be available in FMSLogo 8.6.0.

    The problem was that the error was thrown by the treeification process, which processes all lines of a procedure before evaluating any of them. The general pattern of the fix is to delay throwing the error from the treeification process to the evaluation process.

     

    Related

    Commit: [r6267]
    Commit: [r6268]
    Commit: [r6272]
    Commit: [r6274]

    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo