corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Computer Guys - I need your help!


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Computer Guys - I need your help!
Paul_J
Member

Registered: 6th Jun 02
Location: London
User status: Offline
22nd Nov 05 at 23:05   View User's Profile U2U Member Reply With Quote

Does anyone know how to write a C compiler, using Lex + Yacc... That'll take a C file, and compile it into TAC code?

I'm not even sure what to put into Lex to get the lexical analyser, let alone how to implement that into the Compiler and parse it.

Help

Paul J
richardworrall
Premium Member

Registered: 20th Sep 05
Location: Derby
User status: Offline
23rd Nov 05 at 00:21   View Garage View User's Profile U2U Member Reply With Quote

was that english??
Paul
Member

Registered: 16th Apr 02
Location: Oop north.
User status: Offline
23rd Nov 05 at 00:30   View User's Profile U2U Member Reply With Quote

Try this link .....
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
23rd Nov 05 at 00:35   View Garage View User's Profile U2U Member Reply With Quote

This is for fun I assume.

Moving to Geek Day.

ps. try search for three address code rather than TAC, you'll get more relevant stuff.

[Edited on 23-11-2005 by Ian]
Paul_J
Member

Registered: 6th Jun 02
Location: London
User status: Offline
23rd Nov 05 at 01:34   View User's Profile U2U Member Reply With Quote

Yeh fun

I kinda got it working now, One of my main problems was my actual compiler, wasn't compiling my code correctly.

All my examples were based on using the gcc compiler on a linux system, using -ll and other commands after executing - sadly I was using some dodgy free c compiler for windows which didn't let me do this.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
PC question: Wiping HD and rebooting from scratch. Leven Cruise Geek Day 3 1810
29th Mar 03 at 21:34
by Super_si
 
Computer Courses at College Rob R General Chat 10 1092
28th Mar 04 at 22:23
by motorspeed
 
Computer Peeps Help!!!! Happy_2008 Off Day 10 861
19th Apr 04 at 17:49
by dj_mikey_k
 
does corsasport affect your...................... J da Silva Off Day 30 1533
24th Apr 04 at 09:13
by netrix
 
Digital Video Cameras StuartVRS Off Day 14 893
23rd Jul 04 at 14:41
by drunkenfool
 

Corsa Sport » Message Board » Off Day » Geek Day » Computer Guys - I need your help! 28 database queries in 0.0137231 seconds