felixhao28 / JSCPP

A simple C++ interpreter written in JavaScript

Home Page:https://felixhao28.github.io/JSCPP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse error when run "hello world" program

hongliuliao opened this issue · comments

#include <iostream>

int main() {
    std::cout << "hello world" << std::endl;
    return 0;
}

error info:

Error: ERROR: Parsing Failure:
line 4 (column 8): int main() {\n    std::cout << "hello wor
----------------------------------------^
Expected "!=", "%", "%=", "&", "&&", "&=", "(", "*", "*=", "+", "++", "+=", ",", "-", "--", "-=", "->", ".", "/", "/*", "//", "/=", ";", "<", "<<", "<<=", "<=", "=", "==", ">", ">=", ">>", ">>=", "?", "[", "\\U", "\\u", "^", "^=", "__attribute__", "_stdcall", "auto", "const", "extern", "inline", "register", "static", "|", "|=", "||", [ \n\r\t\u000B\u000C], [0-9], [A-Z], [_] or [a-z] but ":" found.

Namespace is still an unimplemented feature.