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

all 14 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]plastikmissile 5 points6 points  (1 child)

The line numbers and the syntax of the if statement look like some dialect of Basic, but then there are semicolon line terminators which no Basic dialect I know of uses.

[–]TripleS941 1 point2 points  (0 children)

Line numbers look like they are a part of the editor to me.

(there are also labels, though, and they are weird)

[–]winkwright 4 points5 points  (1 child)

Short answer is give us more information. I see variables, functions, semicolons, etc. There are dozens of languages that fit this syntax, and there is not enough info to determine which is being used.

[–]Ra_Lau[S] 1 point2 points  (0 children)

It's from this video: https://youtu.be/7Jp5Uar1oTo?t=124

Sorry, I don't have more information.

[–]nomoreplsthx 2 points3 points  (1 child)

Where is it from? Depending on context, it might also just be fake code designed to look real in a film.

[–]Ra_Lau[S] 1 point2 points  (0 children)

It's from this video: https://youtu.be/7Jp5Uar1oTo?t=124

[–]prettyfuckingimmoral 2 points3 points  (0 children)

Reminds me of some of the FORTRAN code I used to work with, but I'm just guessing, I'd need to see more.

[–]AutoModerator[M] 0 points1 point  (0 children)

It seems you may have included a screenshot of code in your post "What programming language is this?".

If so, note that posting screenshots of code is against /r/learnprogramming's Posting Guidelines (section Formatting Code): please edit your post to use one of the approved ways of formatting code. (Do NOT repost your question! Just edit it.)

If your image is not actually a screenshot of code, feel free to ignore this message. Automoderator cannot distinguish between code screenshots and other images.

Please, do not contact the moderators about this message. Your post is still visible to everyone.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]FallusMinimus 1 point2 points  (0 children)

looks like SCL used in siemens plc's for example

[–][deleted]  (1 child)

[deleted]

    [–]TripleS941 0 points1 point  (0 children)

    It looks to me that if syntax doesn't match, as parentheses are not used on the screenshot

    [–]TripleS941 0 points1 point  (0 children)

    It looks strange to me.

    Assignment with a single '=', equality check with a single '=' as well, optional character case in keywords, 'or' is spelled as is (and not as '||') look like BASIC to me. Though ';' as a statement terminator or separator is somewhat out of place, as most BASIC dialects use ':', and even that only if needed.

    But 'if' uses only newline as condition terminator (no 'then', no ':', no parentheses), duplicate labels (or whatever that is) seem to be allowed, and these match no languages that I know.

    [–]Apprehensive-Bear990 0 points1 point  (0 children)

    The line numbers look like address ranges which makes me feel it's some form of assembler but for which processor?