fmt

A string formatting module for working with INTEGER and REAL values in Oberon-7.

https://github.com/rsdoiel/fmt

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary

Keywords

module oberon oberon-07
Last synced: 4 months ago · JSON representation

Repository

A string formatting module for working with INTEGER and REAL values in Oberon-7.

Basic Info
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
module oberon oberon-07
Created over 5 years ago · Last pushed over 5 years ago
Metadata Files
Readme License Codemeta

README.md

Fmt

An experimental Oberon-7 module to provide format functions for INTEGER and REAL values. It is inspired by Karl Landström's OBNC oberon compiler and his extension library.

Installation

Prerequisite

This repository assumes you have installed Karl Landström's OBNC compiler v0.16.1 or better. It assumes you have a working C tool chain configured (e.g. clang, gcc, make). If you can compile and install Karl's extenions modules obnc-libext-0.7.0.tar.gz then you should be able to install this package.

Setup

The installation process was inspired by Karl's scripts for https://miasap.se/obnc/downloads/obnc-libext_0.7.0.tar.gz and mirrors that process and most of those assumptions.

The basic process is

  1. build
  2. test
  3. install

In the shell I do

bash ./build.bash && ./test.bash && ./install.bash

By default modules are installed relative to your home directory but if you want to install them in a system directory for other users (e.g. /usr/local) then try

bash ./build.bash && ./test.bash && ./install.bash --prefix=/usr/local

Usage

This module is intended to be used with other Obeorn-7 programs and module. This is an example of retrieving the Unix epoch.

```Oberon MODULE Fmt; IMPORT Out; VAR i : INTEGER; r : REAL; fmt : ARRAY 24 OF CHAR; dest : ARRAY 128 OF CHAR;

BEGIN
  i := 42;
  Fmt.Int(i, "%4d", dest);
  Out.String("Formatted i: ");Out.String(dest);Out.Ln;
  r := 42.0;
  Fmt.Real(i, "%4.2f", dest);
  Out.String("Formatted r: ");Out.String(dest);Out.Ln;
END Fmt.

```

License

This software is freely distributed under a BSD/MIT type license. Please see the LICENSE file for more information.

Acknowledgments

This project would not be possible with Oberon so a giant thank you goes to Niklaus Wirth, Jürg Gutknecht, Martin Reiser, Paul Reed et el.

A big thanks also goes to Karl Landström for creating OBNC a very nice open source Oberon-7 compiler.

Owner

  • Name: R. S. Doiel
  • Login: rsdoiel
  • Kind: user
  • Location: California
  • Company: California Institute of Technology

I am a human. Once upon a time I wrote music and prose. I write software.

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "description": "An Oberon-7 module for formatting INTEGER and REAL values as strings. It is designed to work with Karl Landstrom's OBNC compiler.",
  "name": "Fmt",
  "codeRepository": "https://github.com/rsdoiel/fmt",
  "issueTracker": "https://github.com/rsdoiel/fmt/issues",
  "license": "https://opensource.org/licenses/BSD-3-Clause",
  "version": "0.0.0",
  "author": [
    {
      "@type": "Person",
      "givenName": "Robert",
      "familyName": "Doiel",
      "email": "rsdoiel@gmail.com",
      "@id": "https://orcid.org/0000-0003-0900-6903"
    }
  ],
  "developmentStatus": "concept",
  "downloadUrl": "https://github.com/rsdoiel/fmt/releases",
  "keywords": [
    "Oberon",
    "Oberon-7",
    "OBNC",
    "module"
  ],
  "maintainer": "https://orcid.org/0000-0003-0900-6903",
  "programmingLanguage": [
    "Oberon",
    "Obeorn-7"
  ]
}

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels