To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26436
26435  |  26437
Subject: 
Re: NBC beta news
Newsgroups: 
lugnet.robotics
Date: 
Fri, 15 Sep 2006 21:44:49 GMT
Viewed: 
6205 times
  
HI.

> Oh, yeah, and NBC can also compile this sort of code too (if you know the
> top-secret password):
> 
> int x, y, z;
> bool p, d, q;
> mutex myMutex;
> char c;
> unsigned short s;
> 
> sub Weird()
> {
>   Write(z);
> }
> 
> task main()
> {
>   x=0;
> //  z = 10;
>   z = 40;
>   while (x < 10)
>   {
> /*
>     z += 2;
> */
>     Weird();
>     z -= 4;
>     if (0) { continue; }
>     Wait(500);
>     x++;
>   }
> 
>   Cls();
> 
>   s = 500;
>   Wait(s+500);
> 
>   for (z=0; z < 10; z++)
>   {
>     Weird();
>     if (z < 0) {
>       break;
>     }
>     Wait(500);
>   }
> 
>   Wait(3000);
> }


What's this password thing? NBC compiler can really parse such high-level-shaped
code?
Please, forgive me if I haven't understood a joke, since I'm as slow in English
as I can be funny in Italian!

Bye.



Message has 1 Reply:
  Re: NBC beta news
 
(...) I've been working on a high level compiler for a while, taking a wide variety of different approaches depending on my mood it seems. Several months ago I had fiddled with a Pascal-based compiler tutorial which I worked through. In the end I (...) (20 years ago, 16-Sep-06, to lugnet.robotics)

Message is in Reply To:
  NBC beta news
 
I've just uploaded a new NBC beta (b8). The sourcecode and Mac OSX and Linux builds will be up later today. This beta has some cool new features. Unused variable declarations and unused threads/subroutines are removed before generating the (...) (20 years ago, 13-Sep-06, to lugnet.robotics)

12 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR