LimStyle (lim_style v0.1.1)

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 documents 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 = (arg -> 
  :number
), if (is_number(arg))
dfn func = (arg -> 
  :list
), if (is_list(arg))

Deprecated. I'm going to delete this. If you like this syntax, please let me know.

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 = (arg -> 
  :number
), if (is_number(arg))
dfn func = (arg -> 
  :list
), if (is_list(arg))
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)

Deprecated. I'm going to delete this. If you like this syntax, please let me know.

Link to this macro

the(var)

(macro)