HolyC-for-Linux icon indicating copy to clipboard operation
HolyC-for-Linux copied to clipboard

Support print statements

Open just-recipe opened this issue 3 years ago • 1 comments

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'

just-recipe avatar Mar 15 '21 22:03 just-recipe

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

jamesalbert avatar Oct 01 '21 19:10 jamesalbert