cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/23:24:05

From: GBeushausen AT t-online DOT de (Gunnar Beushausen)
Newsgroups: comp.os.msdos.djgpp
Subject: Bison return values
Date: 11 Feb 1997 00:39:52 GMT
Organization: Telekom Online Internet Gateway
Lines: 22
Message-ID: <5dof4o$en8@news00.btx.dtag.de>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

I've a big problem. I wan't to write a getpixel routine for my own BASIC
interpreter GBasic, using BISON. The problem is, i don't know how to
define a BISON function that returns a value. 

The Syntax should be like:

a = getpixel 100, 100

I tried

| GETPIXEL expression',' expression,
that won't work, just like
| expression '=' GETPIXEL expression',' expression.

Can somebody please help me?

---
Gunnar Beushausen
GBeushausen AT t-online DOT de
http://www.hof.de/~gbasic

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019