What is the programming language with syntax like this? [closed] - programming-languages

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have some scripts written in proprietary language. I want to know whether there is any language with similar syntax like this ?
PROCEDURE MY_PROC_NAME DO
{
DECLARE VARIABLE ABC AS NUMBER
[ABC] := 123;
IF ([ABC] = 123) THEN
{
WHILE (TRUE) DO
{
}
}
ELSE
{
RETURN
}
#a comment
SomeFunction(123, 456);
CALL ANOTHER_PROCEDURE;
}
Thank you.

That looks a lot like Comal. See http://en.m.wikipedia.org/wiki/COMAL

This is an imperative programming language, with no macro, functional or object-oriented features in the samples provided. It has features borrowed from Pascal (':=') and C ('{}'). The structure is otherwise unremarkable.
There are some distinctive constructs.
PROCEDURE name DO {} to define a procedure (but apparently not a function).
DECLARE VARIABLE name AS type to define a variable.
[ABC] in referring to the contents of a variable.
The lack of a semicolon on the DECLARE line is interesting, but could be a typo.
So, a derivative language probably dating from around the mid to late 1980s. It could even be a dialect of Basic (there were lots of them!).
With some additional code it might be possible to narrow it down further.

Related

search 'string1' or 'string2' in mongodb [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Search Box Logic based on user input:- [string1, string2, string3] where RESULT if all 3 strings are found > any 2 strings are found > any one string is found.
To perform custom search logic in Mongodb:-
a) Is it possible using mongoosejs? or
b) Do i write javascript logic ?
Are there mongoose plugins for search box logic?
The search is straightforward although note that real full-text style search requires some additional reading and is a separate challenge.
var query = MyModel.find({$or: [{name: string1},{name: string2},{name: string3}]});
Sorting based on how many matched is not something I know how to do within mongodb itself. I don't think it's possible but maybe someone else knows how. I think that you will have to do in your application javascript logic.

Colloborative programming with compiler [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anyone know of any software like Google Docs, or collabedit that allows you to edit realtime collaboratively and even compile a .cpp or other program over the web?
I haven't used this website, but seems like http://codebunk.com/ does the job.
It doesn't work for Java though.
I know of this website that will compile the code for you:
http://ideone.com/
Unfortunately, I cannot help in the real time editing front.
I wrote a little webapp that does exactly that, i.e. it lets you compile Google Docs documents: http://compiler.m01.eu
You can write C++ code into a Google Document (and do that collaboratively if you like), and then click on a bookmark (provided on the site) to compile your code, which will either start the download of your binary or show a compiler error message.

Programming Language that does not permit XSS, SQL Injection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there yet a programming language that will prevent XSS and SQL Injection.
My thoughts are something that is context aware and will correctly encode when necessary. For example, if a string is used in a call to an SQL function, it is quoted unless you tell it to not be quoted. And if you place the variable into a string that is printed, then context-aware encoding is used, knowing whether the code is found in HTML Attribute, HTML fully-formatted (with non breaking spaces and returns), or CSS, Script.
Does such a language exist? One that
Encodes by default, unless you say otherwise,
Includes considerations for different contexts (HTML, Script at least)
Does all the context-aware stuff at compile time,
It does not need to compile to bytecode. A popular high-level language will do.
You could surely take a look at OPA and Ur/Web, both of them enforce safety/security (to a varying degree).

Can anyone recommend a good book or other resource on NTFS semantics? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'd like to improve my understanding of NTFS semantics; ideally, I'd like some kind of specification document(s).
I could (in theory) figure out the basics by experimentation, but there's always the possibility that I'd be ignoring some important variable.
For example, I'm having difficulty finding definitive information on the following:
(1) When do file times (created/modified/accessed) get set/updated? For example, does copying and/or moving a file affect any or all of these times? What about if the file is being copied/moved between volumes? What about alternate streams?
(2) How do sharing modes and read/write access interact?
(3) What happens to security information (SACL, DACL, ownership etc.) when a file is copied and/or moved?
As I said, I could probably "answer" these questions by writing some code, but that would only tell me how the specific operations I tested behaved across any machines that I ran the code on. I'd like to find a resource that can tell me how this stuff is supposed to behave, identifying all the variables that could affect the behaviour.
TIA!
Apparently there are no public non-NDA specifications. Projects such as NTFS-3G would greatly benefit from them, but they don't mention anything.
A predecessor of NTFS-3G, called linux-ntfs, has made some documentation on its own here. Maybe that's good enough for you, maybe not.

Language to create flowcharts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
This seems like something which must have been answered before, but I can't find anything appropriate in the question archives. Basically, I'm looking for a little Domain Specific Language to create flowcharts. I'm terrible at graphic design and making things look nice, and I'd really like a langauge where I could write something in code and it would produce a pretty flowchart. I've come across GraphViz, but it seems more suited to creating things like Finite State Machine diagrams, rather than process flowcharts. It also doesn't have the simple DSL-style front-end that would allow me to easily work it.
Any ideas?
Have a look at PlantUml - in particular their Activity State diagrams.
As an example (from their site) produces the image below:
#startuml
start
if (graphviz installed?) then (yes)
:process all\ndiagrams;
else (no)
:process only
__sequence__ and __activity__ diagrams;
endif
stop
#enduml
MindFusion offers components for diagramming that you can access programmatically.
They offer components for WPF and WinForms:
WPFDiagram - WPF
FlowChart.NET - WinForms
In the past I've used their WPF component on a DSL editor project. Based on Toolbox drag-and-drops in the DSL editor, WPFDiagram was called to create shapes on the Drawing Surface.

Resources