I just install Notepad++ (To use GLua) and I was wondering what languages it uses.
I know it use Lua... but does it use more than one language?
[QUOTE=StarBot;43888180]I just install Notepad++ (To use GLua) and I was wondering what languages it uses.
I know it use Lua... but does it use more than one language?[/QUOTE]
Pretty much whatever you throw at it.
And that's only what it supports for syntax highlighting. You can use any language that uses plain text files.
[QUOTE=Darkwater124;43888237]And that's only what it supports for syntax highlighting. You can use any language that uses plain text files.[/QUOTE]
You can also define your own language for syntax highlighting, as well as there are resources where you can download syntax highlighting that other users have defined.
[QUOTE=bootv2;43888216][img]https://dl.dropboxusercontent.com/u/30229428/notepad.gif[/img][/QUOTE]
My jaw dropped
[QUOTE=StarBot;43888318]My jaw dropped[/QUOTE]
All it is is colouring your text, though. Plus some autocompletion for certain languages but it doesn't compile anything for you, you still need to get the tools for whatever language you want to use.
[QUOTE] but it doesn't compile anything for you[/QUOTE]
Hm?
[QUOTE=StarBot;43888800]Hm?[/QUOTE]
Notepad is just a text editor. You can write anything you want in it, but you need a compiler for your desired language to actually compile your source code into a program.
For gLua, garrysmod is the compiler, if that helps you think about it
I know it really isn't, but that should get the point across. An external program needs to actually process the code.
[QUOTE=nos217;43924502]More like:
Source Code --> Compiler --> Machine Code[/QUOTE]
Depends. The Object Code --> Interpreter version is fine when you think of the hardware as interpreter.
It's really blurry anyway though, for example python is usually first compiled to something at least very close to machine code, not just interpreted.
C# is definitely more on the compiled side, but it still has an extra virtual machine/intermediate stage before it's compiled again during execution.
(Usually. You can definitely compile .NET executable to pure machine code with some effort.)
[QUOTE=bootv2;43888216][img]https://dl.dropboxusercontent.com/u/30229428/notepad.gif[/img][/QUOTE]
Sorry for going off topic, but how did you recorded your screenshot to a gif like that?
[QUOTE=nos217;43924502]More like:
Source Code --> Compiler --> Machine Code[/QUOTE]
For C/C++, it's something like...
Source code -> Pre-processor -> Compiler -> Linker -> Assembler -> Machine code.
And then you have things like Verilog/VHDL...
Code -> Magic happens here -> hardware
[QUOTE=StarBot;44463971]Sorry for going off topic, but how did you recorded your screenshot to a gif like that?[/QUOTE]
Looks like [URL="http://blog.bahraniapps.com/?page_id=21"]GifCam[/URL].
[QUOTE=Angus725;44466157]For C/C++, it's something like...
Source code -> Pre-processor -> Compiler -> Linker ->Assembler -> Machine code.[/quote]
The steps actually look like this for GCC:
[img]http://www3.ntu.edu.sg/home/ehchua/programming/cpp/images/GCC_CompilationProcess.png[/img]
[QUOTE=Angus725;44466157]
And then you have things like Verilog/VHDL...
Code -> Magic happens here -> hardware[/QUOTE]
Having worked with Verilog before, yup. It's just PURE WIZARDRY going on during synthesis. And in comparison to software, synthesizing hardware takes quite a lot more time than compiling a program that does the same thing on a microcontroller.
Sorry, you need to Log In to post a reply to this thread.