Skip to content

Commit

Permalink
remove minimum size of 4096 bytes for parse tree (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jan 16, 2024
1 parent ac9d6dd commit 0558375
Show file tree
Hide file tree
Showing 3 changed files with 8,202 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def send(line) -> None:
send('!.')
send('core.restart()')

time.sleep(1.0)
time.sleep(3.0)
send('core.startup_checksum()')
deadline = time.time() + 1.0
while time.time() < deadline:
Expand Down
5 changes: 4 additions & 1 deletion gen_parser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ then
./owl_executable -c language.owl -o main/parser.h
if [[ $? -ne 0 ]]
then
rm -f main/parser.h
rm -f main/parser.h
exit 1
fi

# remove minimum size of 4096 bytes
sed -i '' 's/while (n < size \|\| n < 4096)/while (n < size)/g' main/parser.h
else
echo "Nothing to do."
fi
Loading

0 comments on commit 0558375

Please sign in to comment.