poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 00/12] Add format function


From: Mohammad-Reza Nabipoor
Subject: [PATCH 00/12] Add format function
Date: Wed, 26 May 2021 02:51:03 +0430

Hi, Jose!

Finally the `format` function is here!
I'm sorry that it took too long; and I'm super happy that I got the chance
to implement this feature.

I think the tests are complete.
The "string properties" instructions are NOP for now.


Regards,
Mohammad-Reza


Mohammad-Reza Nabipoor (12):
  Update contact info of mnabipoor
  doc/learn-poke-in-y-minutes.pk: Update
  libpoke: Fix `muls` insn to use `pvm_alloc`
  libpoke/pvm.jitter: Use more `pvm_make_string_nodup`
  libpoke/pkl-rt.pk: Fix typo s/gigi/gibi/
  libpoke: Fix trivial errors
  libpoke: Add `__pkl_unsafe_string_set` builtin
  libpoke: Fix printf %v for strings to give valid literals
  libpoke: Fix a bug and add assertions to pvm_make_*
  libpoke: Add skeleton for string properties instructions
  libpoke: Add `format`
  pvm.jitter: Wrap std string functions

 AUTHORS                                       |   2 +-
 ChangeLog                                     | 214 +++++++
 HACKING                                       |   4 +-
 common/pk-utils.c                             |  28 +
 common/pk-utils.h                             |   4 +
 doc/learn-poke-language-in-y-minutes.pk       |  45 +-
 etc/hacking.org                               |   4 +-
 etc/poke.rec                                  |  11 +-
 libpoke/pkl-asm.c                             |  39 ++
 libpoke/pkl-ast.c                             |  82 ++-
 libpoke/pkl-ast.h                             | 117 +++-
 libpoke/pkl-gen.c                             | 261 +++++++++
 libpoke/pkl-gen.h                             |   1 +
 libpoke/pkl-gen.pks                           | 554 +++++++++++++++++-
 libpoke/pkl-insn.def                          |  18 +
 libpoke/pkl-lex.l                             |   3 +
 libpoke/pkl-pass.c                            |  12 +
 libpoke/pkl-promo.c                           |  39 ++
 libpoke/pkl-rt.pk                             | 113 +++-
 libpoke/pkl-tab.y                             |  38 +-
 libpoke/pkl-trans.c                           | 349 +++++++++++
 libpoke/pkl-typify.c                          |  55 ++
 libpoke/pvm-val.c                             |  13 +
 libpoke/pvm.h                                 |   4 +
 libpoke/pvm.jitter                            | 326 ++++++++++-
 libpoke/ras                                   |   2 +-
 testsuite/Makefile.am                         |  43 ++
 testsuite/poke.pkl/format-1.pk                |  20 +
 testsuite/poke.pkl/format-10.pk               |   7 +
 testsuite/poke.pkl/format-11.pk               |   7 +
 testsuite/poke.pkl/format-12.pk               |   7 +
 testsuite/poke.pkl/format-13.pk               |   4 +
 testsuite/poke.pkl/format-14.pk               |   4 +
 testsuite/poke.pkl/format-15.pk               |   4 +
 testsuite/poke.pkl/format-16.pk               |   7 +
 testsuite/poke.pkl/format-17.pk               |   7 +
 testsuite/poke.pkl/format-18.pk               |   4 +
 testsuite/poke.pkl/format-19.pk               |   5 +
 testsuite/poke.pkl/format-2.pk                |  20 +
 testsuite/poke.pkl/format-20.pk               |   7 +
 testsuite/poke.pkl/format-21.pk               |   5 +
 testsuite/poke.pkl/format-22.pk               |   5 +
 testsuite/poke.pkl/format-23.pk               |   5 +
 testsuite/poke.pkl/format-24.pk               |   6 +
 testsuite/poke.pkl/format-25.pk               |   7 +
 testsuite/poke.pkl/format-26.pk               |  11 +
 testsuite/poke.pkl/format-27.pk               |  10 +
 testsuite/poke.pkl/format-28.pk               |  11 +
 testsuite/poke.pkl/format-29.pk               |  11 +
 testsuite/poke.pkl/format-3.pk                |  20 +
 testsuite/poke.pkl/format-4.pk                |  20 +
 testsuite/poke.pkl/format-5.pk                |   4 +
 testsuite/poke.pkl/format-6.pk                |   4 +
 testsuite/poke.pkl/format-7.pk                |   4 +
 testsuite/poke.pkl/format-8.pk                |   7 +
 testsuite/poke.pkl/format-9.pk                |   7 +
 testsuite/poke.pkl/format-diag-1.pk           |   3 +
 testsuite/poke.pkl/printf-value-18.pk         |   6 +
 testsuite/poke.pkl/printf-value-19.pk         |   6 +
 testsuite/poke.pkl/printf-value-20.pk         |   6 +
 testsuite/poke.pkl/printf-value-21.pk         |   6 +
 testsuite/poke.pkl/reduce-array-1.pk          |   7 +
 testsuite/poke.pkl/reduce-array-2.pk          |   7 +
 testsuite/poke.pkl/unsafe-string-set-1.pk     |   6 +
 testsuite/poke.pkl/unsafe-string-set-2.pk     |   9 +
 testsuite/poke.pkl/unsafe-string-set-3.pk     |   3 +
 testsuite/poke.pkl/unsafe-string-set-4.pk     |   7 +
 testsuite/poke.pkl/unsafe-string-set-5.pk     |   3 +
 .../poke.pkl/unsafe-string-set-diag-1.pk      |   5 +
 .../poke.pkl/unsafe-string-set-diag-2.pk      |   5 +
 70 files changed, 2628 insertions(+), 72 deletions(-)
 create mode 100644 testsuite/poke.pkl/format-1.pk
 create mode 100644 testsuite/poke.pkl/format-10.pk
 create mode 100644 testsuite/poke.pkl/format-11.pk
 create mode 100644 testsuite/poke.pkl/format-12.pk
 create mode 100644 testsuite/poke.pkl/format-13.pk
 create mode 100644 testsuite/poke.pkl/format-14.pk
 create mode 100644 testsuite/poke.pkl/format-15.pk
 create mode 100644 testsuite/poke.pkl/format-16.pk
 create mode 100644 testsuite/poke.pkl/format-17.pk
 create mode 100644 testsuite/poke.pkl/format-18.pk
 create mode 100644 testsuite/poke.pkl/format-19.pk
 create mode 100644 testsuite/poke.pkl/format-2.pk
 create mode 100644 testsuite/poke.pkl/format-20.pk
 create mode 100644 testsuite/poke.pkl/format-21.pk
 create mode 100644 testsuite/poke.pkl/format-22.pk
 create mode 100644 testsuite/poke.pkl/format-23.pk
 create mode 100644 testsuite/poke.pkl/format-24.pk
 create mode 100644 testsuite/poke.pkl/format-25.pk
 create mode 100644 testsuite/poke.pkl/format-26.pk
 create mode 100644 testsuite/poke.pkl/format-27.pk
 create mode 100644 testsuite/poke.pkl/format-28.pk
 create mode 100644 testsuite/poke.pkl/format-29.pk
 create mode 100644 testsuite/poke.pkl/format-3.pk
 create mode 100644 testsuite/poke.pkl/format-4.pk
 create mode 100644 testsuite/poke.pkl/format-5.pk
 create mode 100644 testsuite/poke.pkl/format-6.pk
 create mode 100644 testsuite/poke.pkl/format-7.pk
 create mode 100644 testsuite/poke.pkl/format-8.pk
 create mode 100644 testsuite/poke.pkl/format-9.pk
 create mode 100644 testsuite/poke.pkl/format-diag-1.pk
 create mode 100644 testsuite/poke.pkl/printf-value-18.pk
 create mode 100644 testsuite/poke.pkl/printf-value-19.pk
 create mode 100644 testsuite/poke.pkl/printf-value-20.pk
 create mode 100644 testsuite/poke.pkl/printf-value-21.pk
 create mode 100644 testsuite/poke.pkl/reduce-array-1.pk
 create mode 100644 testsuite/poke.pkl/reduce-array-2.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-1.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-2.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-3.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-4.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-5.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-diag-1.pk
 create mode 100644 testsuite/poke.pkl/unsafe-string-set-diag-2.pk

-- 
2.31.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]