jamesalbert / HolyC-for-Linux

run HolyC on Linux secularly
MIT License
335 stars 18 forks source link

Support print statements #4

Open just-recipe opened 3 years ago

just-recipe commented 3 years ago

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 commented 3 years ago

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