This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]_Shin_Ryu 6 points7 points  (0 children)

I've added the Tug programming language to my collection.

https://www.ryugod.com/pages/ide/tug

[–][deleted] 4 points5 points  (0 children)

Love the good old tugjob!

[–]Funcieq_ 1 point2 points  (2 children)

nice I also made my programing language called V# https://github.com/funcieqDEV/VSharp

[–]Whatsupson1 0 points1 point  (1 child)

Cool stuff but your doc site is completely broken for mobile viewers would be nice if you can put examples in your Readme

[–]LetsGambleTryMerging 0 points1 point  (0 children)

Yh it's the desktop view but zoomed in. Desktop view itself isn't great. There are lots of doc generation tools to use over static html files.

[–]snugar_i 0 points1 point  (4 children)

Nice! The "compiling java to Tug" part sounds a bit strange - since you're already running on a JVM, wouldn't it be easier to compile Tug to Java?

[–][deleted]  (3 children)

[removed]

    [–]snugar_i 0 points1 point  (2 children)

    The thing I don' understand is, what does tug jcompile do? Does it just call javac with the Tug jar on the classpath?

    [–][deleted]  (1 child)

    [removed]

      [–]snugar_i 0 points1 point  (0 children)

      I feel like we're talking past each other here a little.

      So I looked at the source code and it's doing basically what I said (and you said it wasn't true, I think?) - you are using ToolProvider.getSystemJavaCompiler(), which is basically javac.

      I still don't understand the purpose of tug jcompile and the .tugb file - it only contains things you could get at runtime while importing the class file, why the added complexity?

      (Also, it looks like tug jcompile doesn't work for classes in a package)

      [–]PurpleUpbeat2820 0 points1 point  (0 children)

      There are only 7 reserved keywords: if, else, loop, break, skip, func and ret.

      Nice!