Jump to content

Rhindle the Dragon

Members
  • Content Count

    170
  • Joined

  • Last visited

Everything posted by Rhindle the Dragon

  1. We lost Baxter, our 20-year-old cat, on the eleventh. 10 January 1997 - 11 September 2017. Miss you, buddy.

    1. Rhindle the Dragon

      Rhindle the Dragon

      Oh, man. And I thought Inauguration Day on my birthday was bad.

    2. Jess Ragan

      Jess Ragan

      Pretty good run for a cat, I'd have to say.

    3. Nutsy Doodleheimer
    4. Show next comments  12 more
  2. This last summer I had a voltage regulator go bad, and it fried the RIOT IC. I still haven't gotten around to replacing it. I think if the regulator is going bad, you should replace it right away to avoid having to replace some chips as well.
  3. Please excuse my wife. She may appear to be rather nasty, but deep down she has a heart of formica.

  4. Are you speaking of the worm or the spaghetti?

    1. 7800Lover

      7800Lover

      No, it's pronounced "EYE-gore".

    2. TheTIGuy

      TheTIGuy

      WHY IS THERE SPAGHETTI IN MY BOWL OF WORMS?

  5. Roses are red, Chirrut can't see. I'm one with the Force, and the Force is with me. Happy Star Wars Day, AtariAge!

    1. Random Terrain

      Random Terrain

      May the fifth be whiff you?

    2. Atarian7

      Atarian7

      The fourth was with me. I saw some of The Empire Strikes Back yesterday and some of Return of the Jedi.

    3. Flojomojo

      Flojomojo

      My droids arm is red, the other says GONK, I'm a day late, who would have thunk?

    4. Show next comments  12 more
  6. Roses are red, Chirrut can't see. I am one with the Force, and the Force is with me. Happy Star Wars day, AtariAge!

  7. God said to set up free Wi-Fi in the tabernacle, but Moses is having a little trouble finding the promised LAN.

    1. _The Doctor__
    2. Atarian7
    3. CyranoJ

      CyranoJ

      ... God was happy. Moses had destroyed the forbidden Apple.

    4. Show next comments  12 more
  8. HONI SOIT QUI MAL Y PENSE

  9. "Look at the size of that thing!" -- "I'm going in!" -- "Luke, at that speed, will you be able to pull out in time?" ...It was intentional. No doubt.

    1. HoshiChiri

      HoshiChiri

      "Did it go in?"

      "Negative- it just detonated on the surface."

       

      Someone needs some self-control!

    2. BassGuitari
    3. AtariNerd

      AtariNerd

      Han Solo might be kind of obvious, with a little imagination, but how about obi wankin obi. ;)

    4. Show next comments  12 more
  10. Does an original Magnavox Odyssey count? I used to own an Atari Flashback 2, and it's what got me into 2600 collecting. If it weren't for that, I would say that Plug 'N Plays are lame. I'm a purist myself, and something about 100 games on one console just seems cheap.
  11. Hearts and kidneys are tinkertoys! I'm talking about the central nervous system!

    1. retrorussell

      retrorussell

      There, wolf. There, castle.

    2. retrorussell

      retrorussell

      Blucher! *neigh!!!*

    3. Rhindle the Dragon

      Rhindle the Dragon

      Wait! Where are you going? I was gonna make espresso!

    4. Show next comments  12 more
  12. Confucius say: Bicycle cannot stand on its own. It is two-tired.

    1. frankodragon

      frankodragon

      Confucius say… constipated people don't give a crap.

       

    2. PacManPlus

      PacManPlus

      Man who loses key to girlfriend's apartment gets no new-key.

    3. Atarian7

      Atarian7

      man who eat many prunes , sit on toilet for many moons

    4. Show next comments  12 more
  13. It's like trying to date an antique radio by the patent number on the label. "No, your radio wasn't made in 1949. It's most likely 15 years newer."
  14. Sometimes I feel as if my writing improves as I grow older, even if I don't take any classes or practice more. I finished a fairly decent short story last month, one which I'm proud of, and it just makes me think how much better I can be if I keep practicing on top of this natural expressive improvement.
  15. I don't see why it wouldn't be. It might be ambiguous if the VCS had a pre-launch like the NES, but I don't think it did. Can anyone confirm?
  16. Just scored an NES Advantage for $12!!!

    1. save2600

      save2600

      great, now you turn it into a 7800 stick! :-)

    2. Zuse

      Zuse

      Suh-weet! The only one I've ever had a chance to handle was in pretty bad shape, but it seemed like it had once been a really solid stick.

    3. BassGuitari

      BassGuitari

      Is $12 a good price now? I've had a couple of these forever (one from when I was a kid) and never thought anything of it. I loved playing Galaga and TMNTII with mine BITD.

  17. MEMOIRS OF A NOVELTY ACCOUNT VOL. II, ISSUE VI Gudday ond welkom ta Imperiyal Mundays. Dis ebenin, I be prezentin a pome I writ, call'd "Skyentist". Enjoi. SKYENTIST It’s 12 PM And her students ask “Does a bigger force exist?” “The book doesn’t say,” She says with a sigh. “Ask the Skyentist.” The children go home And say to this force “Who rules the universe?” “The book wouldn’t say,” Its echo replies. “Ask your teacher first.” Feetur'd Fotograf: Flags in Berlin.
  18. MEMOIRS OF A NOVELTY ACCOUNT VOL. II, ISSUE V Hello all. Welcome to Imperial Mondays *Lite*. What? I'm busy this week! Don't expect much. I'll just be adding another photo to the gallery. So take care and tempt not the fates. Featured Photograph: Crazy discrete math homework.
  19. Wanted: Green ribbon cable, voltage regulator, and 1977 RIOT.

  20. Thanks for the pointers! *(no pun intended.) Yeah I thought about making the master array dynamic. Something about setting a max size just bothers me. I refrained from using strtok because I didn't initially design the program to use <string.h> even though I ended up using it anyway. Plus, I was required to do it on a character-by-character basis. I'm not familiar with fread yet. I'll keep this in mind when I rebuild this for my own programming language.
  21. Just finished a quarter project in Computer Science and feeling great!

    1. Keatah

      Keatah

      Just backed up my system and feeling great!

       

    2. GoldLeader

      GoldLeader

      Congrats to both!

  22. MEMOIRS OF A NOVELTY ACCOUNT VOL. II, ISSUE IV Good evening. I am... Dracula. Ah ah ah. For me, this Monday was truly imperial. I was stuck at a certain part of my CS210 lexer assignment, and showed it to my instructor, saying "I feel like if I just get past this problem, I could finish this in two hours." He said he severely doubted my ability to do that. Guess what? I got past the problem and finished the assignment in two hours. And I even did it in less than 300 lines! In fact, I'm so freaking proud of this that I'll share it with the community. Here you go: /*-------------------------------------------------------------- Lexer Assignment CS 210 Rhindle the Dragon 2-27-2017 to 3-6-2017 Deep as a river, wide as the sea Changin' the ways of a captain and me--------------------------------------------------------------*/#include <stdio.h>#include <string.h>#include "keys.h"#define MAXSIZE 1048576#define WORKSIZE 256int iskeyword(char []);int isoperator(char []);int main(int argc, char *argv[]){ if (argc == 1) { printf("\nYou MUST specify the name of a file to read.\n\n"); return 0; } FILE *fp = fopen(argv[1], "r"); if (!fp) { printf("\nError opening file!\n\n"); return 1; } char a, master[MAXSIZE], working[WORKSIZE]; int i, j; /* This loop feeds the entire file into an array. */ for (i = 0; (a = fgetc(fp)) != EOF; i++) master[i] = a; fclose(fp); printf("\n"); /* The parsing portion begins here. */ for (i = 0; master[i] != '\0'; i++) { /* This section skips white space. */ if (master[i] == ' ' || master[i] == '\n' || master[i] == '\t') continue; /* This section checks for comments. */ else if (master[i] == '/' && master[i + 1] == '*') { printf("%c", master[i]); while (1) { if (master[i + 2] == '*' && master[i + 3] == '/') break; i++; printf("%c", master[i]); } printf("%c%c%c (comment)\n", master[i + 1], master[i + 2], master[i + 3]); i += 4; } /* This section checks for string literals. */ else if (master[i] == '\"') { j = 0; working[j] = master[i]; i++; j++; while (master[i] != '\"') { working[j] = master[i]; i++; j++; } working[j] = master[i]; working[j + 1] = '\0'; printf("%s (string)\n", working); } /* This section checks for character literals. */ else if (master[i] == '\'') { for (j = 0; j < 3; j++) { working[j] = master[i]; i++; } working[j] = '\0'; i--; printf("%s (character literal)\n", working); } /* This section checks for numeric literals. */ else if (master[i] > 0x2F && master[i] < 0x3A) { j = 0; while ((master[i] > 0x2F && master[i] < 0x3A) || (master[i] > 0x40 && master[i] < 0x47) || (master[i] > 0x60 && master[i] < 0x67) || master[i] == 0x23 || master[i] == 0x2E || master[i] == 0x5F) { working[j] = master[i]; i++; j++; } i--; working[j] = '\0'; printf("%s (numeric literal)\n", working); } /* This section checks for identifiers and possible keywords. */ else if ((master[i] > 0x60 && master[i] < 0x7B) || (master[i] > 0x40 && master[i] < 0x5B)) { j = 0; while ((master[i] > 0x60 && master[i] < 0x7B) || (master[i] > 0x40 && master[i] < 0x5B) || (master[i] > 0x2F && master[i] < 0x3A) || (master[i] == 0x5F)) { working[j] = master[i]; /* Feed lexeme into array */ i++; j++; } i--; working[j] = '\0'; if (iskeyword(working) == 0) /* Check if keyword */ printf("%s (keyword)\n", working); else printf("%s (identifier)\n", working); } /* This section checks for operators. */ else if ((master[i] > 0x27 && master[i] < 0x30) || (master[i] > 0x39 && master[i] < 0x3F) || master[i] == 0x21 || master[i] == 0x26 || master[i] == 0x5B || master[i] == 0x5D || master[i] == 0x7C) { j = 0; working[j] = master[i]; i++; j++; if (master[i] == '=' || master[i] == '.' || master[i] == '<' || master[i] == '>' || master[i] == '*') { working[j] = master[i]; j++; } else i--; working[j] = '\0'; if (isoperator(working) == 0) printf("%s (operator)\n", working); else { printf("ILLEGAL OPERATOR\n"); return 0; } } /* This is the default condition. */ else { printf("UNK\n"); return 0; } } printf("\n"); return 0;}int iskeyword(char working[]){ int k; int flag1 = 0; for (k = 0; k < MONKEY; k++) { if (strcmp(keys[k], working) == 0) { flag1 = 1; break; } } if (flag1 == 1) return 0; else return 1;}int isoperator(char working[]){ int k; int flag1 = 0; for (k = 0; k < BROADWAY; k++) { if (strcmp(opers[k], working) == 0) { flag1 = 1; break; } } if (flag1 == 1) return 0; else return 1;} And here's the header: /*++++++++++++++++++++++++++++++++++++++++ Lexeme List Header Rhindle the Dragon 2-27-2017 to 3-6-2017++++++++++++++++++++++++++++++++++++++++*/#define MONKEY 34#define BROADWAY 27const char *keys[MONKEY] ={ "accessor", "and", "array", "begin", "bool", "case", "else", "elsif", "end", "exit", "function", "if", "in", "integer", "interface", "is", "loop", "module", "mutator", "natural", "null", "of", "or", "others", "out", "positive", "procedure", "return", "struct", "subtype", "then", "type", "when", "while"};const char *opers[BROADWAY] ={ ".", "<", ">", "(", ")", "+", "-", "*", "/", "|", "&", ";", ",", ":", "[", "]", "=", ":=", "..", "<<", ">>", "<>", "<=", ">=", "**", "!=", "=>"}; Featured Photograph: 1882 Elgin pocket watch I bought with the refund money.
  23. I believe these white manuals only came with the 1977 gate-fold launch titles. And Warner bought Atari before the 2600 came out.
×
×
  • Create New...