6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 11:30 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: Wed Sep 12, 2001 9:08 pm 
Does anybody have yacc and lex files for a reasonable 6502 assembly grammar? Also, how would you implement macros with yacc/lex?
Thanks


Report this post
Top
  
Reply with quote  
PostPosted: Thu Sep 13, 2001 2:01 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
>Does anybody have yacc and lex files for a
>reasonable 6502 assembly grammar? Also, how
>would you implement macros with yacc/lex?

What do yacc and lex stand for? In my work, lex has stood for language extension and lexical order, but I don't think that's what you mean.

Garth

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Report this post
Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 13, 2001 1:25 pm 
Lex and Yacc are utilities (originally from unix) for defining a language grammar and lexigraphic analyzer. With a simple syntax, you feed yacc with a language grammar, lex with language tokens, and together, they generate C code to parse text files.
-ss


Report this post
Top
  
Reply with quote  
PostPosted: Sun Sep 16, 2001 8:10 pm 
lex is short for Lexical Analyzer and yacc stands for Yet Another Compiler Compiler. There are GNU versions of these utilities called flex and bison.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: