Coder Social home page Coder Social logo

slang-kazu's Introduction

Build Status

NAME

Slang::Kazu - Japanese numerals in your Raku

SYNOPSIS

use Slang::Kazu;
say "3542" ~~ 三千五百四十二; # True
say '一' ~~ /<single-kazu>/; # Will match any digit from 1 to 9

DESCRIPTION

Slang::Kazu is a Raku slang that allows you to use a subset of native Japanese numerals in your Raku code because you can.

You can use numbers from 1 to 99999. Counters are yet to be implemented. Mostly this is a clone of drforr's Slang::Roman, but for Japanese numerals - all thanks to him for the idea and the implementation.

Currently, incorrect numbers like 二二 are evaluated to Nil and you will see some scary errors because of that, so don't lose your kanji!

This project is just a joke and doesn't intented to be used in any serious codebases! You are warned.

AUTHOR

Altai-man on Github, you can cast sena_kun on freenode too.

COPYRIGHT AND LICENSE

Copyright ©

License GPLv3: The GNU General Public License, Version 3, 29 June 2007 https://www.gnu.org/licenses/gpl-3.0.txt

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

slang-kazu's People

Contributors

altai-man avatar lizmat avatar samcv avatar zoffixznet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

slang-kazu's Issues

from SYNOPSIS — say "3542" ~~ 三千五百四十二; — Error while compiling: Undeclared routine

$ zef install Slang::Kazu
===> Searching for: Slang::Kazu
===> Testing: Slang::Kazu:ver<1.1>
[Slang::Kazu]     # the licence ‘GPL-3.0’ is valid but deprecated, you may want to use another license.
[Slang::Kazu]     # 
===> Testing [OK] for Slang::Kazu:ver<1.1>
===> Installing: Slang::Kazu:ver<1.1>
$ raku
Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2020.12.
Implementing the 𝐑𝐚𝐤𝐮™ programming language v6.d.
Built on MoarVM version 2020.12.

To exit type 'exit' or '^D'
> use Slang::Kazu;
Nil
> say "3542" ~~ 三千五百四十二; # True
===SORRY!=== Error while compiling:
Undeclared routine:
    三千五百四十二 used at line 1

> say '' ~~ /<single-kazu>/; # Will match any digit from 1 to 9

 single-kazu => 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.