LimStyle (lim_style v0.1.0)

This package includes macros to write code using my style. It is for programmers who prefer Math style to do..end style. I will add more document soon.

Example

import LimStyle

dfmodule MyModule = (
  dfn func1 = (x -> x + 3)
  dfn func2 = ((a, b) -> 
    a * b
  )
)

Link to this section Summary

Functions

Example

dfmodule MyModule = (
  # code...
)

Example

dfn func_if = ((a, b) -> 
  a * b
), if (is_number(a) and is_number(b))

Link to this section Functions

Link to this macro

branch(conditions)

(macro)
Link to this macro

dfconst(arg)

(macro)
Link to this macro

dfconstp(arg)

(macro)
Link to this macro

dfmacro(arg)

(macro)
Link to this macro

dfmacrop(arg)

(macro)
Link to this macro

dfmodule(arg)

(macro)

Example

dfmodule MyModule = (
  # code...
)
Link to this macro

dfn(arg)

(macro)
Link to this macro

dfn(arg1, arg2)

(macro)

Example

dfn func_if = ((a, b) -> 
  a * b
), if (is_number(a) and is_number(b))
Link to this macro

dfnp(arg)

(macro)
Link to this macro

dfnp(arg1, arg2)

(macro)
Link to this macro

dfnx(arg)

(macro)
Link to this macro

lambda(arg)

(macro)
Link to this macro

lmd(content)

(macro)
Link to this macro

the(var)

(macro)