This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 »
736
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 27, 2009, 03:01:05 pm »
Now that I finally understand what you're trying to say, you're right. He is not innovating, but rather, making a more specialized parser to fit ENIGMA's needs. It's not going to be used for anything outside ENIGMA, so therefore, it is best to be optimized for this situation.
EDIT: Also, completely unrelated thing...
Well, remember what you said about linux registries? Well, turns out all three major desktops have configuration registries. GNOME has GConf, Xfce has XConf, and KDE has KConfig.
EDIT: Also, completely unrelated thing...
Well, remember what you said about linux registries? Well, turns out all three major desktops have configuration registries. GNOME has GConf, Xfce has XConf, and KDE has KConfig.
737
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 25, 2009, 09:51:00 am »
I... I'll just stop. You're not getting my point, and I don't think explaining anymore is going to make you change your mind.
738
General ENIGMA / Re: Generated Parser (v2)
« on: August 25, 2009, 09:48:39 am »
Probably. But whatever; I can still open the EXE in Windows.
739
General ENIGMA / Re: Enigma IDE (written in C++ using GTK+)
« on: August 24, 2009, 10:15:51 pm »
I would like GTK. Josh, I've never had those problems. Must be just you. :/
You could also use Qt instead if you need another option.
You could also use Qt instead if you need another option.
740
General ENIGMA / Re: Generated Parser (v2)
« on: August 24, 2009, 08:12:42 pm »
I tried make, and it didn't work for me for some reason.
741
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 24, 2009, 08:08:22 pm »He said g++ has been around longer and thus has been improved more. That is a valid argument- we don't need to compile anything ourselves. Yacc has been around much longer than Josh, and is a computer program, so it is easier to generate correct parsers with it.
You obviously still don't understand what is going on. All Josh's parser needs to do is make the code readable by a c++ compiler. It doesn't have to actually parse it. All your analogies to florescent lights and lcd screens are completely off. The reason his method is useful is because it's doing something different- it's not doing the same thing in a different way.
Quote
In computer science and linguistics, parsing, or, more formally, syntactic analysis, is the process of analyzing a text, made of a sequence of tokens (for example, words), to determine its grammatical structure with respect to a given (more or less) formal grammar.Essentially, parsing is taking text from one form and putting it to another, better form. Something as simple as BBCode is "parsed".
The lightbulb worked for hundreds of years. Because it has worked well for that long, does it mean that it's the best? No.
It is impossible to re-invent the wheel. It is one of the most simplistic machines, and now that you know how to make it work, you realize that is the only way to make it work. By making it better, you would simply be modifying the current design and adding on to it.
However, a regular light bulb is not the only way to make something work. You can make it differently, even though you know its current design which works so well.
742
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 24, 2009, 09:34:20 am »"This tool has been around much longer and can definitely do the job, let's use it"
Originally, the computer monitor was this big device that shot electrons out of an effing big tube onto a glass screen. Eventually, someone was able to make a liquid crystal display, which used far less electricity to do the job, and it had a severe difference in quality from its successor.
743
General ENIGMA / Re: Generated Parser
« on: August 24, 2009, 09:24:50 am »
Ah, okay. Sorry. I'll stop messing with the command line and just use an IDE. :/
Oh, screw it. It's not working. I saw it in Windows, and that's enough for me.
Oh, screw it. It's not working. I saw it in Windows, and that's enough for me.
744
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 23, 2009, 03:42:48 pm »GCC does a lot, so why waste effort? GCC has a preprocessor. So why bother working on one? You could have the EDL go through the preprocessor, then your parser and THEN the C compiler itself. It could work...The preprocessor is mostly required for syntax checking, if I recall.
745
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 22, 2009, 08:28:59 pm »The only reason Josh's method is even maybe acceptable is because he's not really parsing it. He's just prettifying it so GCC can parse it. If he were going to compile it himself, his method would not work at all.Which is what the parser is supposed to do! It's not a syntax checker. It parses Game Maker syntax into C++ syntax. If it's not good enough for Game Maker to read, it's not going to be parsed correctly, and it won't compile. However, if Game Maker can read it, it will be made readable by the compiler.
746
General ENIGMA / Re: Generated Parser
« on: August 22, 2009, 08:23:16 pm »
It won't compile.
You forgot a script in the zip, which I'm assuming probably has the bulk of the code.
Also, what language is the L extension for
Quote
g++ -O -Wall -o parser gml.cpp
gml.cpp:4:23: error: gml.tab.hpp: No such file or director
gml.cpp: In member function ‘virtual void OperNode::print(
gml.cpp:29: error: ‘EQ’ was not declared in this scope
gml.cpp:32: error: ‘UMINUS’ was not declared in this scope
gml.cpp:45: error: ‘WHILE’ was not declared in this scope
gml.cpp:47: error: ‘IF’ was not declared in this scope
gml.cpp:49: error: ‘FOR’ was not declared in this scope
gml.cpp: In function ‘void initResWords()’:
gml.cpp:83: error: ‘WHILE’ was not declared in this scope
gml.cpp:84: error: ‘IF’ was not declared in this scope
gml.cpp:85: error: ‘FOR’ was not declared in this scope
gml.cpp:86: error: ‘ELSE’ was not declared in this scope
gml.cpp:87: error: ‘INT’ was not declared in this scope
gml.cpp:88: error: ‘DOUBLE’ was not declared in this scope
You forgot a script in the zip, which I'm assuming probably has the bulk of the code.
Also, what language is the L extension for
747
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 22, 2009, 08:15:18 pm »
Rusky, I don't see why you're trying so hard. Josh's method is more efficient, and while it may seem more complex and less readable, there is no reason why it should not be obvious that it's a better method.
The lightbulb was originally an idea of something that burns so much electricity that it creates heat and then light (although hopefully more light than heat, unless it's a heat lamp). Then, someone thought of florescent lightbulbs. How do they work? They glow. That's it. No burning up electricity in an extremely inefficient matter. They just work.
A tree might work. It was what was thought of first. Is it the best method?
The lightbulb was originally an idea of something that burns so much electricity that it creates heat and then light (although hopefully more light than heat, unless it's a heat lamp). Then, someone thought of florescent lightbulbs. How do they work? They glow. That's it. No burning up electricity in an extremely inefficient matter. They just work.
A tree might work. It was what was thought of first. Is it the best method?
748
General ENIGMA / Re: Generated Parser
« on: August 22, 2009, 08:11:36 pm »Yes, main() is somewhere. Keep looking. You do realize this wasn't written entirely in C++, right?Unless gml.cpp was merely an include for another script in another language, there must be main() in that file if it is a console script, and it wasn't there. You left code out that wasn't in parser.exe.
Also, if your tree does not work with a UNIX character set, then that's just sad. Even Windows 7 said anything with semicolons was bad syntax, and it's better syntax to have them.
749
General ENIGMA / Re: Generated Parser
« on: August 22, 2009, 02:01:23 pm »
Apparently the unknown character thing was Wine. But main() isn't anywhere.
750
Announcements / Re: Parsers -- A novel by Josh @ Dreamland
« on: August 22, 2009, 12:37:46 pm »
Yeah, but I still do it, anyways. And interpreted languages like PHP aren't optimized. In PHP, I even unset variables after I used them to make code run faster.