Browse Source

keywords as values in decl parameters

python3 2.5.8
Volker Birk 3 years ago
parent
commit
0e554339d9
6 changed files with 10 additions and 6 deletions
  1. +3
    -1
      backend.py
  2. +1
    -1
      heading.en.yhtml2
  3. +2
    -0
      standardlib.ysl2
  4. +2
    -2
      yml2.py
  5. +1
    -1
      yml2c
  6. +1
    -1
      yml2proc

+ 3
- 1
backend.py View File

@ -1,4 +1,4 @@
# 2.5.6 backend
# 2.5.8 backend
# written by VB.
@ -232,6 +232,8 @@ class YF:
def addValue(self, parm, value):
if type(value) is str or type(value) is unicode:
if value[0] != "'" and value[0] != '"':
value = "'" + value + "'"
self.values[parm] = u(evalPython(value))
else:
self.values[parm] = u(evalPython(u(value)))


+ 1
- 1
heading.en.yhtml2 View File

@ -13,7 +13,7 @@ decl ne is a {
div id=headline {
p > YML – Why a Markup Language?!
div class=small {
"YML 2.5.7 of Do 26 Apr 2018 – Copyleft 2007-2018, "
"YML 2.5.8 of We 29 Aug 2018 – Copyleft 2007-2018, "
a "http://blog.fdik.org", "Volker Birk";
" – "
a "http://fdik.org/yml2.tar.bz2", "Download YML 2";


+ 2
- 0
standardlib.ysl2 View File

@ -1,3 +1,5 @@
// YML2 standardlib version 2.5.8
function "yml:hex2dec" {
param "hex";
param "_result", 0;


+ 2
- 2
yml2.py View File

@ -1,4 +1,4 @@
# YML 2.5.6 language definition
# YML 2.5.8 language definition
# written by VB.
@ -66,7 +66,7 @@ def parm_eq(): return [xmlSymbol, pyExp, pointer, macro], "=", [value, poin
parm_eq.__name__ = "parm"
_func = [symbol, ppointer, pointer, reference], _if(newSyntax, (-1, ("[", listing(parm), "]"))), 0, ("(", listing(parm), ")"), 0, listing(parm), -1, parm_eq
def pythonCall(): return keyword("python"), _func, [";", "."]
def declParm(): return [pointer, macro, xmlSymbol], 0, ("=", literal)
def declParm(): return [pointer, macro, xmlSymbol], 0, ("=", [literal, symbol])
def alias(): return keyword("alias"), aliasSymbol
def descend(): return r(r"[+@*]" + _symbol, re.U)
def base(): return keyword("is"), symbol


+ 1
- 1
yml2c View File

@ -2,7 +2,7 @@
# vim: set fileencoding=utf-8 :
"""\
YML 2 compiler version 5.5
YML 2 compiler version 5.8
Copyleft (c), 2009-2011, Volker Birk http://fdik.org/yml/
"""


+ 1
- 1
yml2proc View File

@ -2,7 +2,7 @@
# vim: set fileencoding=utf-8 :
"""\
YML/YSLT 2 processor version 5.5
YML/YSLT 2 processor version 5.8
Copyleft (c), 2009-2011 Volker Birk http://fdik.org/yml/
"""


Loading…
Cancel
Save