-
Notifications
You must be signed in to change notification settings - Fork 15
[π]: Tried the first program and complaining about #24
Comments
Hey @birojnayak, have you used the Nuget package or the latest commit from Main? |
@KTSnowy I simply followed the https://github.com/otterkit/otterkit#quick-install |
Hey @birojnayak, I managed to reproduce the issue. The problem seems to be with the Running Otterkit with the following command I'll work on a fix for this issue and I'll let you know as soon as I upload the updated version. In the meantime could you try updating your Otterkit version to 1.0.75 and running the above command without |
Newest version from NuGet should be working now: https://www.nuget.org/packages/Otterkit/1.0.80 Just made an updated version with the fix. The preprocessor needed the following lines to check if a source format (other than auto) was specified. if (CompilerOptions.Format is not SourceFormat.Auto)
{
HasDetectedSourceFormat = true;
} Previously it would continue with It also skipped most of the auto detection checks because source format was not set to |
The first demo works(thank you). Now I am struggling with this one https://gist.github.com/birojnayak/4bd0d4332d98170f74803b3e217ca4f8 .
biroj@88665a0182c9 transform % otterkit build -e demo.cob
|
The We want to support extensions (and older syntax) through an We wish we had more resources to be able to work on more than one thing at the same time. Due to limited resources we can also only work on the parser right now (working on name resolution), and work on the codegen would have to wait until we finish name resolution or until we get more resources to work on both the parser and codegen. Because of that, the We hope we can get more contributors and maybe (open source) company support soon so that we can work on more than one thing and get Otterkit working and stable sooner. @birojnayak would you like to help us with the codegen a little bit while we work on name resolution? |
I'll add parsing checks for the With error messages if |
Ok close this once you fix the Author paragraph.. I am also creating few more issues based on my finding. |
Is there an update to this issue? |
Hey @GitMensch, unfortunately I will have to stop developing the COBOL compiler, the Otterkit project will be repurposed towards developing a different language. Overall I have found the COBOL standard to be severely underspecified and having too much implementation-defined behavior to make a Standard COBOL implementation possible. That together with the fact that I cannot contact the committee at all to ask for clarification makes the goal of the project, to build a Standard COBOL implementation, extremely hard if not completely unattainable. Also I tried asking you for help 3 months ago with the external typedefs, but it seems to have been mostly ignored. I still have no idea how to resolve some of those issues, or how exactly they are meant to work. |
Please drop at least a note to the GnuCOBOL Lounge, once your decision is final. As noted before, you should be able to contact your national standard body for any clarification (or contact details) about a standard they have given their OK to as part of ISO. |
I'll make one once I figure out what I should do next.
I put the COBOL compiler code in an |
Describe the bug
biroj@88665a0182c9 demonewapp % otterkit build --run -e hello.cob --free
Analyzer Error [COB0085]: Missing source unit definition.
ββ/> [hello.cob:1:7]
β
1 β program-id. hello.
β ~~~~/> Expected a source unit id definition.
β
β Note: The identification header is optional but every source unit must still have an ID.
β
βββββ―
Unhandled exception. System.InvalidOperationException: Stack empty.
at System.Collections.Generic.Stack
1.ThrowForEmptyStack() at System.Collections.Generic.Stack
1.Peek()at Otterkit.Analyzers.Analyzer.Source() in C:\Users\KTSno\Documents\GitHub\otterkit\Otterkit.Analyzers\src\Analyzer.cs:line 54
at Otterkit.Analyzers.Analyzer.Analyze(List`1 tokenList) in C:\Users\KTSno\Documents\GitHub\otterkit\Otterkit.Analyzers\src\Analyzer.cs:line 17
at Otterkit.Otterkit.CommandLineArguments(String[] args) in C:\Users\KTSno\Documents\GitHub\otterkit\src\Otterkit.cs:line 115
at Otterkit.Otterkit.Main(String[] args) in C:\Users\KTSno\Documents\GitHub\otterkit\src\Otterkit.cs:line 27
zsh: abort otterkit build --run -e hello.cob --free
To Reproduce
https://gist.github.com/birojnayak/6b939399336ac80da8e50a47e58ae8de <= CobolFile
ran this command
otterkit build --run -e hello.cob --free
Expected behavior
Expecting CS file
Screenshots
If applicable, add screenshots to help explain the issue. This could be terminal screenshots that can help us find the source of the issue.
Platform Information (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: