8000 The coconut interpreter told me to report this · Issue #561 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
The coconut interpreter told me to report this #561
Closed
@BruceEckel

Description

@BruceEckel
>coconut
Coconut Interpreter:
(type 'exit()' or press Ctrl-D to end)
>>> range(1,10) |> reduce$(*) |> print
362880
>>> range(1,10) |> reduce$(*, initializer = 1000) |> print
cPyparsing.ParseException: Expected end of text, found 'r'  (at char 0), (line:1, col:1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python\lib\site-packages\coconut\command\command.py", line 291, in handling_exceptions
    yield
  File "c:\python\lib\site-packages\coconut\command\command.py", line 128, in cmd
    self.use_args(parsed_args, interact, original_args=args)
  File "c:\python\lib\site-packages\coconut\command\command.py", line 269, in use_args
    self.start_prompt()
  File "c:\python\lib\site-packages\coconut\command\command.py", line 534, in start_prompt
    compiled = self.handle_input(code)
  File "c:\python\lib\site-packages\coconut\command\command.py", line 550, in handle_input
    return self.comp.parse_block(code)
  File "c:\python\lib\site-packages\coconut\compiler\compiler.py", line 2344, in parse_block
    return self.parse(inputstring, self.file_parser, {}, {"header": "none", "initial": "none"})
  File "c:\python\lib\site-packages\coconut\compiler\compiler.py", line 754, in parse
    parsed = parse(parser, pre_procd)
  File "c:\python\lib\site-packages\coconut\compiler\util.py", line 260, in parse
    return unpack(grammar.parseWithTabs().parseString(text))
  File "cPyparsing.pyx", line 1886, in cPyparsing.ParserElement.parseString
  File "cPyparsing.pyx", line 1781, in cPyparsing.ParserElement._parseCache
  File "cPyparsing.pyx", line 1787, in cPyparsing.ParserElement._parseCache
  File "cPyparsing.pyx", line 1626, in cPyparsing.ParserElement._parseNoCache
  File "cPyparsing.pyx", line 3998, in cPyparsing.And.parseImpl
  File "cPyparsing.pyx", line 270, in cPyparsing.ParseBaseException._from_exception
TypeError: type() takes 1 or 3 arguments
(you should report this at https://github.com/evhub/coconut/issues/new)
Exiting due to TypeError.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0