Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C ompiler

Name: sven 2013-07-13 13:17

I want to write a C compiler, and I was thinking of tokenizing and parsing code by turning the entire syntax into a giant regexp. Is this a good idea?

Name: Anonymous 2013-07-13 13:18

There's a single line regex that should be good. Thats how come clojure is so efficient.

Name: Anonymous 2013-07-13 13:19

The compiler you use to compile your own C compiler will leave a backdoor.

Unless you create a compiler from scratch, it cannot be trusted. Why even bother?

Also, I wrote a C compiler when I was 12.

Name: PCRE 2013-07-13 13:33

I am not sure.
 --pcre.org

>>3
Nice, me too.
  --Fabrice Bellard

Name: Anonymous 2013-07-13 17:06

>>3
Was it GNU C compliant?

Name: Anonymous 2013-07-13 17:10

>>3
>LELELLELE LE MEME FACE :D
>LELELELE MEME RESPONSE I WROTE C COMPILER AT 12
>LEEEEEEEEEEEELELELLE XDDDDDDDDD XD XD LE EGIN GRO

Name: Anonymous 2013-07-13 17:37

>>6
fuck off

Name: Anonymous 2013-07-13 18:31

>>5
You won the daily double!

Name: Anonymous 2013-07-13 19:19

>>8
*Implementations may vary, ask your local standards committee. Void where prohibited.

Don't change these.
Name: Email:
Entire Thread Thread List