LogFAQs > #882327931

LurkerFAQs, Active DB, Database 1 ( 03.09.2017-09.16.2017 ), DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicI wrote a C++ interpreter
Yellow
07/04/17 5:07:17 PM
#9:


Magus 10 posted...
Yellow posted...
Also in my language, you don't declare anything and everything is a double, even arrays, which don't have any real limit (assuming you don't actually use all of the space). Good enough for my needs really.


I'm a little confused, is it a C++ interpreter, or is it an interpreter for a language you created?

Well, it's a basic C interpreter that loosely follows the rules of C. There are a couple differences.

The semicolon in "if (); {}" isn't supposed to be there, but that's a little compiler trick I think. If () counts as its own command and ignores the scope, it just knows that it should skip the next scope.

There are also no functions or dependencies, so it's like a barebones language based off C++.
---
... Copied to Clipboard!
Topic List
Page List: 1