Coder Social home page Coder Social logo

Additional language: Forth about cloc HOT 8 CLOSED

aldanial avatar aldanial commented on July 17, 2024
Additional language: Forth

from cloc.

Comments (8)

larsbrinkhoff avatar larsbrinkhoff commented on July 17, 2024

Rare file extensions: 4, blk, f83, fb, fpm, ft, rx, scr, spf, txt, e4.

I guess you can ignore txt.

from cloc.

AlDanial avatar AlDanial commented on July 17, 2024

I added support for Forth with many (4th, e4, f83, fb, forth, fpm, fr, frt, ft, fth, rx) of the listed extensions with git commit 121cc5e.

These extensions conflict with Fortran: f, for
This extension conflicts with F#: fs
These extensions (like txt) map to non-code files I'm familiar with: scr, spf

cloc can work with extensions to map to multiple languages but then more work is needed to write a special function that can deduce which of the two or more languages a given file is. I might revisit that in the future. Or you could supply the function (see for inspiration cloc's existing subroutines matlab_or_objective_C(), pascal_or_puppet(), Perl_or_Prolog(), et cetera).

from cloc.

larsbrinkhoff avatar larsbrinkhoff commented on July 17, 2024

Thank you!

from cloc.

larsbrinkhoff avatar larsbrinkhoff commented on July 17, 2024

scr is just Forth source code without line breaks. That's why they look strange.

from cloc.

AlDanial avatar AlDanial commented on July 17, 2024

The integration of your two routines is complete with git commit 88f71e7.

from cloc.

larsbrinkhoff avatar larsbrinkhoff commented on July 17, 2024

Looks good!

from cloc.

AlDanial avatar AlDanial commented on July 17, 2024

hi Lars, if you have a moment could you respond to the remarks at #103 regarding the use of (* .. *) to denote Forth comments?

from cloc.

larsbrinkhoff avatar larsbrinkhoff commented on July 17, 2024

Yep.

from cloc.

Related Issues (20)

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.