Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple test #6

Open
SuperJMN opened this issue Jan 7, 2019 · 0 comments
Open

Simple test #6

SuperJMN opened this issue Jan 7, 2019 · 0 comments

Comments

@SuperJMN
Copy link

SuperJMN commented Jan 7, 2019

Hello @praeclarum! I'm trying to use your CLanguage. I'm a bit lost.

This is what I have so far:

public class UnitTest1
{
    [Fact]
    public void Test1()
    {
        var sut = new CCompiler(new CompilerOptions(new MachineInfo()));
        sut.AddDocument(new Document("file.c", "int main { return 123; }"));
        var ex = sut.Compile();
    }
}

How do I get the 123 that results after the execution of the program?

praeclarum added a commit that referenced this issue Apr 18, 2020
praeclarum added a commit that referenced this issue Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant