Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
README fix
· cfdcee2a
Juergen Nickelsen
authored
Sep 26, 2018
cfdcee2a
only one debugflags option now
· 16c5fdf0
Juergen Nickelsen
authored
Sep 26, 2018
(but with a flag1,flag2,... argument)
16c5fdf0
Show whitespace changes
Inline
Side-by-side
README.md
View file @
16c5fdf0
...
...
@@ -8,7 +8,7 @@ Copyright (C) 2017, 2018 Juergen Nickelsen <ni@w21.org>. See LICENSE
for the conditions under which this code is licensed to you.
Pyle is meant to be a rather (although not strictly) minimal
interpreter, with
a
few features in the builtin core. More functionality
interpreter, with few features in the builtin core. More functionality
shall, if possible, be implemented in the language itself. In order
to do that, it has macros.
...
...
pyle.py
100755 → 100644
View file @
16c5fdf0
...
...
@@ -31,7 +31,7 @@ usage: pyle [-t] [-l loadfile] [-d debugfflags] [-L loadpath] [program] ...
ovc
,
argv
=
posix_getopts
.
parse
({
"
t
"
:
[
0
,
bool
,
"
traceback
"
,
"
print python tracebacks on error
"
],
"
l
"
:
[[],
str
,
"
loadfiles
"
,
"
load file(s)
"
],
"
d
"
:
[
[]
,
str
,
"
debugflags
"
,
"
set debug flag(s)
"
],
"
d
"
:
[
""
,
str
,
"
debugflags
"
,
"
set debug flag(s)
, separated by commas
"
],
"
r
"
:
[
10000
,
int
,
"
recursion_limit
"
,
"
set recursion limit
"
],
"
s
"
:
[
0
,
bool
,
"
evalstack
"
,
"
print eval stack or error
"
],
"
L
"
:
[
default_loadpath
,
str
,
"
loadpath
"
,
"
set the load path
"
],
...
...
@@ -40,8 +40,7 @@ ovc, argv = posix_getopts.parse({
# dbg.p(dbg.main, sys.argv[0], "starting up")
for
flags
in
ovc
.
debugflags
:
for
flag
in
flags
.
split
(
"
,
"
):
for
flag
in
ovc
.
debugflags
.
split
(
"
,
"
):
dbg
.
addFlag
(
flag
)
sys
.
setrecursionlimit
(
ovc
.
recursion_limit
)
...
...