Bison parser on MSX: ROM, sources and HowtoMSX Resource Center MSX Info Update - Finnish MSX madness at its best              
              
English Nederlands Español Português Russian         
 News
   Frontpage
  News archive
  News topics

 Resources
   MSX Forum
  Articles
  Reviews
  Fair reports
  Photo shoots
  Fairs and meetings
  Polls
  Links
  Search

 Software
   Downloads
  Webshop

 MRC
   Who we are
  Join our team
  Donate
  Policies
  Contact us
  Link to Us
  Statistics

 Search
 
  

  

 Login
 

Username

Password




Don't you have an account yet? Become an MSX-friend and register an account now!.


 Statistics
 

There are 142 guests and 2 MSX friends online

You are an anonymous user.
 

Bison parser on MSX: ROM, sources and Howto

Development - Bison parser on MSX: ROM, sources and Howto

 Monday, May 19, 2008 - 00:53
 Submitted by: andrear1979
 Topic: Development
 
Andrea Rossetti from Italy wrote a brief tutorial on how to build a Bison parser for MSX using the SDCC cross-compiler; the resulting .ROM program can read an input sequence, do a syntax check and perform actions on specific subgroups of tokens.

Possible applications that may benefit of a Bison parser are (among others) textual adventure games, compilers, interpreters and loaders of formatted data for game levels. Tutorial, source code and an example ROM file are available at andrear's website.

Relevant link: andrear's website
 
 


By Google

By pitpan on May 19 2008, 08:22
Whow. Never expected to find Bison available for MSX! Bison (and Flex) are the core of asMSX. Is this an omen for an upcoming asMSX native MSX version? I doubt it, but it is cool to know that such possibility exists.
By andrear1979 on May 19 2008, 09:35
I would remark that Bison parsers were immediately compilable on SDCC, without changes to the intermediate C file.

I think it should work as well with flex, but I wasn't able to reach the same results, the C source gives many errors with SDCC. My parser uses only Bison and a simple handmade tokenizer at the moment.

My next experiments might be devoted to try using Flex on MSX, I'll keep MRC informed about it.

Sincere regards, Andrea

By ARTRAG on May 21 2008, 16:24
Why not trying a more enjoying port ?

Do you know angband ? It is a nice D&D game with simple graphic (even in ASCII)

It's C sources are free and online.

look e.g. here http://www.google.com/codesearch?hl=en&q=show:WrcI7R5662I:070TbDU8sS4&sa=N&ct=rdp&cs_p=http://ftp5.ru.freebsd.org/pub/FreeBSD/distfiles/tome-232-src.tar.bz2

and it can fit for sure in a rom.




By ARTRAG on May 22 2008, 14:16
see also http://rephial.org/
and
http://en.wikipedia.org/wiki/Angband_(computer_game)


 Recent news
 
MSXart'08 - #2 Head over Heels 
MSX Info Update 2008 reminder 
Sound extensions articles on MSX Café 
Hideo Kojima on the future of games 
ViewMSX 0.06b 
Vampire Killer article 
Interview with Manuel Pazos 
Bitwise presents three new Shockware titles 
Bonami Retro fair - October 2008 
Bottle of wine poll down, SCUMM poll up 

[ News archive ]

 Latest forum posts
 
Gradius, Parodius, Ganbare and more for sale
Build my own megarom-cartridges...
Caos Begins: not anymore a chaos :)
OpenMSX, BlueMSX and fMSX are far from being perfect...
Project MOAM - Moon over Arba Minch
Tank game
want to to implement multiplayer how's obsonet 2 doing, anyone?
More info on Zemina rare games...
bload "A:" & SDCC
GFX9000 photo

[ View MSX forum ]

 Poll
 
Will we ever see a SCUMM-like point and click game on MSX?

Yes
No

[ View results ]

 Latest reactions
 
Interview with Manuel Pazos
MSX Info Update 2008 reminder
Sound extensions articles on MSX Café
ViewMSX 0.06b
Hideo Kojima on the future of games
Will we ever see a SCUMM-like point and click game on MSX?
Vampire Killer article
With whom would you like to celebrate MSX25?
MOAM - Portal Cave mp3 added to downloads
Bottle of wine poll down, SCUMM poll up
 Affilates
 
WOOMB.net
Play-Asia
eBay
 Sponsored Links
 

(c) 1994 - 2008 MSX Resource Center Foundation. MSX is a trademark of MSX Licensing Corporation.