Skip to content

Commit

Permalink
fix: read function
Browse files Browse the repository at this point in the history
  • Loading branch information
pgagnidze committed Jul 31, 2023
1 parent 828a1f6 commit 6681501
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Dockerfile.ubuntu
@@ -0,0 +1,11 @@
FROM ubuntu:22.04

WORKDIR /app

COPY . /app

RUN apt-get update \
&& apt-get install -y git lua5.1 luarocks \
&& luarocks make luarocks/ena-0.0.2-2.rockspec

RUN ena --tests
2 changes: 1 addition & 1 deletion ena.lua
Expand Up @@ -105,7 +105,7 @@ Enter the code here and press Ctrl+D to run it.
end

-- parse --
local input = io.read "a"
local input = io.read "*a"
local ast = parser.parse(input, show.pegdebug)
if not ast then
local furthestMatch = common.getFurthestMatch()
Expand Down

0 comments on commit 6681501

Please sign in to comment.