Sorun Cevaplayalım

İşinizle ilgili öngörüler edinin, gerçek zamanlı bilgilere göre karar alın.

SAP Eğitim ve Sertifika Dönemleri

Uzmanlığınızı ve deneyiminizi SAP çözümleri kullanarak tasdik edin.

Çözüm Ekibi Başvurusu

Kullanıcılara hızlı ve pratik çözümler üreterek görev almak isteyenler.

Announcing The ABAP Scheme Workbench

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
990
Tepki puanı
6
Three years ago, Martin Ceronio published a LISP interpreter in ABAP.


Today I am announcing ABAP Scheme, a Lisp interpreter in ABAP targeting the Revised revised revised revised revised revised revised Report on the Algorithmic Language Scheme, aka R7RS.

I am also excited to share the availability of the ABAP Scheme Workbench, a programming environment for Scheme.

What is Scheme?


From Wikipedia, the free encyclopedia:
Scheme is a functional programming language and one of the two main dialects of the programming language Lisp. Unlike Common Lisp, the other main dialect, Scheme follows a minimalist design philosophy specifying a small standard core with powerful tools for language extension.

Lisp is a 60 year old family of computer languages that represent both source code and data using a tree data structure (s-expressions).

220px-Corrected_S-expression_tree_2.png
sample_sexp.png

s-expression for (* 2 (+ 3 4)) workbench view (* 2 (+ 3 4))



In constrast to ABAP, Scheme is lexically scoped with proper tail call optimization.

Getting Started


ABAP Scheme is available from Github and can be installed using from GitHub - nomssi/abap_scheme: LISP interpreter in ABAP with Editor using abapGit.

  • the repository master branch was tested on Netweaver 7.4 SP09.
  • the branch Netweaver-7.02 was downported to Netweaver 7.02
workbench_branch.png


The code released with an MIT License:


THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Features


Check out the Wiki for documentation and sample code/games code.


abap_scheme_wiki.png


Integration


When used as a script language, a single include YY_LIP_LISP is needed. Class lcl_lisp_interpreter evaluates your code from a string code, e.g

DATA(response) = NEW lcl_lisp_interpreter( )->eval_source( code ).
Workbench


The ABAP Scheme Workbench is the programming environment where ABAP Scheme programs are written and evaluated. It offers an editor, a console view and useful tools.

abap_scheme_workbench.png


Recent Innovations


New with Milestone v0.1:

  • Regression test suite with 350+ ABAP unit tests
  • Nested quasi quotation
  • Trace Viewer
    eval_trace.png



  • Graphical S-Expression Viewer using PlantUML server
    sexpression_viewer.png



  • more demo code
Planned Innovations

  • more language features (Scheme string handling)
  • Debugger Script enhancement to display S-Expressions
  • Specify limit for execution time of interpreter
  • enable new ABAP editor with LISP syntax highlighting properties
  • Use registry solution to store/restore state/code
Product Direction

  • ABAP integration in the language and in the workbench with easy to use patterns for function module calls, method calls and SQL queries.
  • Powerfull scripting language in ABAP with hygienic macros, seamless ABAP interoperability
Product Vision

  • Support third party libraries
  • Wiki documentation with easy-to-try sample code in the style of The Little Schemer or Learn You a Haskell for Great Good
Credits

Final Notes


Okumaya devam et...
 
Üst