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

Support print statements #4

Open
just-recipe opened this issue Mar 15, 2021 · 1 comment
Open

Support print statements #4

just-recipe opened this issue Mar 15, 2021 · 1 comment

Comments

@just-recipe
Copy link

Holy C supports print statements from bare string literals. There are probably a few other examples that I haven't tested (https://harrisontotty.github.io/p/a-lang-design-analysis-of-holyc).
HelloWorld.hc:
"God is Good"

This results in the following error:

Traceback (most recent call last):
   File "/home/[redacted]/.local/lib/python3.8/site-packages/secularize/parser.py", line 154, in maybe_call
    if self.input.peek().get('type') in ['string', 'num'] or \
AttributeError: 'NoneType' object has no attribute 'get'
@jamesalbert
Copy link
Owner

Hey @just-recipe thanks for the issue! Feel free to submit PRs for anything really. Otherwise, this will give me something fun to do on the weekend 😎 I'll crack this repo back open later tonight to see if I can wrap my head around my garbage code again

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