Hello everyone! I am sorry to bug you, but this site is my last hope. I have tried googling, so, reddit, irc, and various other forums. Anyways, I am writing a todo list app in c. It generates an...
Type: Posts; User: DTSCode
Hello everyone! I am sorry to bug you, but this site is my last hope. I have tried googling, so, reddit, irc, and various other forums. Anyways, I am writing a todo list app in c. It generates an...
so i rewrote my lexical analyzer so that its based off stroustrops calculator rather than using regex's. the only problem is trying to handle multi character operators like >>=, +=, and --. I can fix...
>why you had the else's in there in the first place).
yeah thats why
im sorry i forgot to post what im inputting. im passing a file called hello.jd that contains
import sysio;
function...
I did that, but now the output is
(STRING, "Hello, world!", 0, -1)
(KEYWORD, import, 0, -1)
(IDENTIFIER, import, 0, -1)
(STRING, "Hello, world!", 0, -1)
so i am on the final step of writing my small lexer for a compiler, but i have ran into an issue. my code currently only checks for string literals and then cant find anything else. if someone could...
thanks everyone for the help!
sorry about the late reply. thanks for all of the help! so how would i implement PushBack and PopFront?
hi everyone! i am writing a symbol table, and originally had it working as a std::vector<Token> (Token is my class to hold an entry in the symbol table) I realized that i was just going to be...
so i have a c source file:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <regex.h>
typedef struct
ah that makes sense. i was actually just testing the && to see if it would work and decided to not take it out, but i forgot that it will short circuit. regex.h is the c regex library. i would and...
hey all! Im not new to forums in general, but i am to this one, so if im inadvertently breaking a rule please let me know. anyways i need help with some code im writing and cant figure it out. im...