Skip to content

J2EO & Polystat compatibility. About runtime support #31

@someilay

Description

@someilay

Runtime support

It's collection of files that makes translated code runnable by Eo compiler.

Now supported:

  • Partially all primitives (operations +, -, *, / and %; casting to int)
  • Partially String (operation +; String.valueOf)
  • Partially System (System.out.println)
  • Partially Random (nextInt; nextFloat)

Example Eo:

# 2022-05-30T14:14:20.359245787
# j2eo team
+alias stdlib.lang.class__Object
+alias stdlib.lang.class__System
+alias stdlib.lang.class__String

[] > class__Main
  class__Object > super
  super > @
  [] > new
    [] > this
      class__Object.new > super
      super > @
      "class__Main" > className
      [this] > init
        seq > @
          TRUE
    seq > @
      this
  # main :: String[] -> void
  [args] > main
    seq > @
      s1048027629
    [] > s1048027629
      class__System.out.println > @
        class__System.out
        l928466577
    [] > l928466577
      class__String.constructor_2 > @
        class__String.new
        "Hello!"
  # null :: null -> void
  [this] > constructor
    seq > @
      initialization
      s1691875296
      this
    [] > initialization
      this.init > @
        this
    [] > s1691875296
      super.constructor > @
        this.super

[args...] > main
  class__Main.main > @
    *

Runtime out:

Hello!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions