stdlib_gen.go 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Code generated by ecal/stdlib/generate; DO NOT EDIT.
  2. package stdlib
  3. import (
  4. "fmt"
  5. "math"
  6. "reflect"
  7. )
  8. /*
  9. genStdlib contains all generated stdlib constructs.
  10. */
  11. var genStdlib = map[interface{}]interface{}{
  12. "math-synopsis": "Mathematics-related constants and functions",
  13. "math-const": mathConstMap,
  14. "math-func": mathFuncMap,
  15. "math-func-doc": mathFuncDocMap,
  16. }
  17. /*
  18. mathConstMap contains the mapping of stdlib math constants.
  19. */
  20. var mathConstMap = map[interface{}]interface{}{
  21. "E": float64(math.E),
  22. "Phi": float64(math.Phi),
  23. "Pi": float64(math.Pi),
  24. }
  25. /*
  26. mathFuncDocMap contains the documentation of stdlib math functions.
  27. */
  28. var mathFuncDocMap = map[interface{}]interface{}{}
  29. /*
  30. mathFuncMap contains the mapping of stdlib math functions.
  31. */
  32. var mathFuncMap = map[interface{}]interface{}{}
  33. // Dummy statement to prevent declared and not used errors
  34. var Dummy = fmt.Sprint(reflect.ValueOf(fmt.Sprint))