Go to Post I think this can be cleared up easily...one of the New Hampshire teams needs to go dumpster diving at FIRST HQ and look for an invoice. - Vaillancourt88 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-06-2002, 16:16
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
emulationFIRST (aka PBasic emulator)

I'm finally ready to release the first version (0.01) of my PBasic emulation also known as emulationFIRST (like we didn't have enough bad puns on the FIRST name already). So far, I've got it to run the DefaultProgram.bsx (the one provided by InnovationFIRST). This does not implement too many more features than required to run the DefaultProgram.bsx. However, I would like to have some help in figuring out what I need to add and also to figure out where bugs in the program lie. I do know that it leaks memory like crazy but I haven't been able to get it to crash. I'd like to know where it fails in your program and for what reason (doesn't parse the code right, unimplemented feature, etc.).

At the moment, the only interface is via a text-based console (ie, you run it via command.com). You provide it the name of your PBasic file and it will prompt you for inputs everytime it hits a Serin and will output values everytime it finds a Serout.

I do plan to implement the rest of the features that are used in FIRST programs but that is obviously a matter of time and version numbers. Also, a GUI is planned for the near future but I wanted to get the actual parser working correctly before I started on anything like that.

There are binaries available for both Windows and Linux as well as the source code. The provided code will only compile under Linux at the moment (I need to merge some changes back in that are required to make it compile on Windows).

As far as architectural details go, it used bison (a general-purpose parser generator) and flex (a lexical analyzer) as well as C code. It makes use of only one non-ANSI C call (strcasecmp or _stricmp on Windows; does anyone know a good case insensitive string compare call?) so should compile easily on all platforms with minimal effort.

Any help you can provide is greatly appreciated. The program can be found here: http://www.rit.edu/~msl8101/emulationFIRST/

Matt
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of the AKA Profile Field Brandon Martus Announcements 0 30-07-2003 22:54
RoboEmu for Linux (PBASIC emulator) rbayer Programming 5 21-11-2002 21:08
RoboEmu v.1a (another PBASIC emulator) rbayer Programming 0 07-07-2002 00:45
Need list of feature for PBASIC emulator. rbayer Programming 37 20-06-2002 16:17
Is there going to be a PBasic emulator out there?? Matt Attallah Programming 7 14-12-2001 13:20


All times are GMT -5. The time now is 07:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi