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

Error compiling from command line. #5

Open
Spoiledpay opened this issue Oct 25, 2021 · 2 comments
Open

Error compiling from command line. #5

Spoiledpay opened this issue Oct 25, 2021 · 2 comments

Comments

@Spoiledpay
Copy link

Spoiledpay commented Oct 25, 2021

Dear,
I'm trying to make a compilation of a simple HelloWorld program and it gives the error. what is missing to make the .exe compilation?

io :: import std.io
fn Main() {
println("Hello World.")
}

output:
E:\ProjetosE\publish>cheezc.exe Hello.che
--int E:\ProjetosE\publish\int --name Hello --out E:\ProjetosE\publish --subsystem console Hello.che
D:\Programming\CheezLang\CompilerLibrary\Parsing\Parser.cs:335 - ParseStatement()
E:\ProjetosE\publish\Hello.che:1:14: Expected newline after statement
1> io :: import std.io
^——
2>

D:\Programming\CheezLang\CompilerLibrary\Compiler.cs:308 - ParseFile()
E:\ProjetosE\publish\Hello.che:1:1: This type of statement is not allowed in global scope
1> io :: import std.io
^———————————
2>

D:\Programming\CheezLang\CompilerLibrary\SemanticAnalysis\TypeInference.cs:3470 - InferTypesIdExpr()
E:\ProjetosE\publish\Hello.che:4:5: Unknown symbol 'println'
3> fn Main() {
E:\ProjetosE\publish> World.")

@Nimaoth
Copy link
Collaborator

Nimaoth commented Oct 26, 2021

Hi, I'm suprised someone tried this project out :) I haven't worked on this in a few months. It looks like you used a prebuilt version from the releases page (so 0.4.0 I guess). This version is not up to date with the newest language changes, in fact there's more than a year of progress that's happened after I uploaded that version, so if you take code examples from the README and try to compile them using this version it won't work. I can upload a new release with the newest compiler version which should hopefully work, but I left the project in a messy state so it might take me a few hours.

Thanks for trying it out though :)

@Spoiledpay
Copy link
Author

A great job you've done so far. I hope you don't give up. Good work will always be found and explored on Github. I hope that I will be able to upload and publish a new working version as soon as possible so that you can learn more about the language and develop a program using it. I wait for this new version Thank you. great job.

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

2 participants