Jump to content

Photo

Developing a new language - ACUSOL

Action

285 replies to this topic

#276 MrFish OFFLINE  

MrFish

  • 5,419 posts

Posted Wed Jun 24, 2015 5:14 PM

Tell me about it. I see a lot of them at the moment.

 

Hahaha



#277 snicklin OFFLINE  

snicklin

    River Patroller

  • 2,192 posts
  • Location:Australia

Posted Fri Aug 28, 2015 10:41 AM

How's this project coming along? I was thinking about it and it's possibilities, it has kept me awake while trying to sleep! :)



#278 danwinslow OFFLINE  

danwinslow

    River Patroller

  • 2,574 posts

Posted Mon Jan 11, 2016 6:03 AM

Hmmm. I hope this is not abandoned.



#279 Pab OFFLINE  

Pab

    Chopper Commander

  • Topic Starter
  • 157 posts

Posted Sun Jun 25, 2017 1:48 PM

Hello, folks.

 

Well, I spent the last two years fighting foreclosure and losing.

 

We then needed to find a new house. So we found a cheap one in Western New York near my mother.

 

Then right after we closed on the house my mother died.

 

Anyway, I've been distracted.

 

Update will follow.



#280 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • 14,424 posts
  • Location:United Kingdom

Posted Sun Jun 25, 2017 1:53 PM

These are awful developments: my sincere sympathy. But it's good to see you back here. :)

#281 Pab OFFLINE  

Pab

    Chopper Commander

  • Topic Starter
  • 157 posts

Posted Sun Jun 25, 2017 2:00 PM

So today I finally got back into the code to try and figure out what was going on. I spent the better part of a month trying to track this down while distracted with everything else before laying it aside. I was ready to gut my expression evaluation code and start over.

 

So today I updated to the newest build of Lazarus, thinking some bugs in that compiler might be causing problems with my stepping through and tracking down the bug. I was right. Once I was able to step through the execution without it bombing back for some reason, I found the problem.

 

All this time planning to pull out and replace the entire expression evaluation system and rewrite it? All I had to do was change:

s := AnsiRightStr(st,Length(st) - LinePosition);

to

s := AnsiRightStr(st,Length(st) - LinePosition + 1);

What happened with tebe's code is that instead of parsing and compiling "x+5" the compiler only saw "+5" and added 5 to the current value: 0.

 

...

 

Months of trying to find the problem and then two years of worrying about it on top of everything else and it was STARING ME RIGHT IN THE FACE.

 

tebe's code now shows the correct result. I need a drink before I get back into this.



#282 Stephen OFFLINE  

Stephen

    Quadrunner

  • 7,524 posts
  • A8 Gear Head
  • Location:No longer in Crakron, Ohio

Posted Sun Jun 25, 2017 4:16 PM

Terribly sorry to hear the news.  Welcome back though, and congrats on finding the bug.



#283 Pab OFFLINE  

Pab

    Chopper Commander

  • Topic Starter
  • 157 posts

Posted Sun Jun 25, 2017 4:18 PM

I'll try to have an updated build out this week.

#284 Pab OFFLINE  

Pab

    Chopper Commander

  • Topic Starter
  • 157 posts

Posted Sun Jun 25, 2017 6:17 PM

Had to go back reading through this thread to figure out where I had left off. Shocked to see how close I actually was when things fell apart.

#285 Pab OFFLINE  

Pab

    Chopper Commander

  • Topic Starter
  • 157 posts

Posted Sun Jun 25, 2017 6:49 PM

I only had to make one minor change to tebe's code. In Sparta a Print statement without an EOL will be immediately overwritten by the command prompt when control returns to DOS. I had to try it under AtariDos to make sure it was outputting and I didn't have a new bug on my hands.

 

Anyway: here's proof of the fix.

 

Attached Thumbnails

  • Untitled - 1.jpg


#286 snicklin OFFLINE  

snicklin

    River Patroller

  • 2,192 posts
  • Location:Australia

Posted Tue Jun 27, 2017 2:33 PM

Great to hear that you are back.

I am all excited again.





Also tagged with one or more of these keywords: Action

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users