Free Pascal without Lazarus - command-line

Could any of you chaps point me in the direction of a good tutorial or book for Free Pascal that does not rely on using Lazarus? Ideally I would like just to write code in a text editor and compile/link using the command-line. I have no existing knowledge of Pascal at all.
Unfortunately all the material I have uncovered through Google assumes the use of Lazarus, prior knowledge of Pascal or refers only to the pre-Delphi/FPC versions of Pascal without 'modern' features such as dynamic strings, objects and so forth.

Lazarus doesn't change the base dialect possibilities. It is only an IDE and visual library over freepascal, nearly everything nonvisual is FPC.
Just install FPC and compile with
fpc <programname>
As reference for the dialect see the Free Pascal reference guide, which contains nonvisual examples. When you have a base level of knowledge, you can adapt Lazarus related examples to your own environment.

Related

Making a DSL and an interpreter in Eclipse?

i have to do a DSL and an interpreter of it using Eclipse modeling framework i think so , because i dont have a lot of information about it . I have four months to do it and i am very lost .
The DSL have to read files from sensors , and with the DSL you can make complex math operations . Anyone one know any free resource/book/tutorial/guide where i can read about that ( i can't find anything useful) or anyone can tell my some clues to follow and how start . Thank you so much.
I try to find some examples doing someting like that and i can't find anything.
Eclipse Modeling Project: A Domain-Specific Language (DSL) Toolkit and EMF: Eclipse Modeling Framework (2nd Edition) are two great books on this topic that you can get used for about five dollars each. While not free, they are well worth the small price. There is also a newer reference Implementing Domain Specific Languages with Xtext and Xtend that seems very relevant but I have not had the pleasure of reading it yet, so can't vouch for it.
There are also many free talks on these subjects on youtube and all the EMF, Xtext, etc. websites have quite a bit of tutorials.
Also, based on this question: Interpreter vs. Code Generator Xtext , Xtext does not appear to support interpreters but Xbase may.
There are examples of using XText to build an interpreter / interpreted language (eg. https://eclipse.org/Xtext/documentation/202_scripting.html).
For me, it took a while to get all plugins configurations correct, but it is well documented, on Xtext web and in github / tutorials.
Also, look at XTend (http://www.eclipse.org/xtend/) as this is a major birck in XText framework.

What is the fastest way to create a cross-platform IDE for a new programming language?

The title already says most of what I'm after, but let me state some of the requirements explicitly:
The language is not widely used, so writing a new language tokenizer etc is assumed to probably be required.
Cross-platform, means at least Linux, Mac OS and Windows
Minimal features: Syntax highlighting and Code-completion (aka "IntelliSense")
Preferrable features: Interactive debugging
Assumption: The developer is not an expert in any one programming language (although mediocre in a few, and eager to learn new techniques), so the focus on an environment / tools that quickly gets a developer up to speed, and is productive enough to reach the goal as fast as possible.
Xtext would be the perfect fit for these requirements. All you need to do is to define your grammar and you have your parser, linker, editor, etc. Of course all of this can be customized to your needs.
If your language compiles down to Java, you also get expressions and debugging out of the box.
Lazarus + SynEdit + SynCompletion (cross platform + syntax highlighting + autocompletion), interactive debugging is way to difficult I guess.

Visual software tool for creating complex branching logic

Is there a visual software tool (no batch coding/programming language) which can enable an end user to create complex branching logic like this tool : http://www.visuallogic.org/VLTutorial.html . Any eclipse plgun-in similar to this. I want that complex logic expressed by the end user to be represented in XML form
A set of plug-ins called vIDE might help you - it's a tool based on GMF I am currently developing. You can check out the project here.
It's still far from stable or finished, but you can draw flowcharts in it which get dynamically converted to Ecore models (which in term can be exported to XML).
My current effort is to support generation of executable Python code from the drawn flowchart.
Take a look at UniMod
In term of pure flowchart diagrams (and not UML diagrams), I didn't find anything recent.
flowchartstudio is not supported on recent Eclipse version
flowchart4j (not free) is interesting (for Java programs, so no XML representation)
DRAKON Editor
http://drakon-editor.sourceforge.net/
It it supports visual programming in several programming languages, including Java, Processing.org, D, C#, C/C++ (with Qt support), Python, Tcl, Javascript, Lua and Erlang.
Why to use DRAKON than other diagramming systems?
No line intersections. You will never find in DRAKON diagram two or
more lines intersecting each other! Not seen in other diagramming
systems!
Silhouette structure. It allows to break one diagram in to several
logical parts. Not seen in other diagramming systems!
No slanting or curved lines. Only straight lines with right angles.
Icons are placed only on vertical lines.
Branching is done in a simple, visible and consistent way.
Each diagram has one entry and one exit.
More about DRAKON here:
http://en.wikipedia.org/wiki/DRAKON
Take a lool at TUM.CMS.VplControl

Using (Java) Eclipse abilities in other programming language

I use Eclipse mainly for LSL (linden Scripting language). The plug-in for this language does not provide things like templates or task-tag recognition. Is there any way that these kind of features in LSL-files (or any other generic file/code for that matter) can be used?
Take look at the XText project. If you can define the grammar of LSL there it will generate full Eclipse plugin for it, complete with syntax Highlighting, code Completion, validation and quick Fixes and more.
Another one to try (one i use myself) is LSL Editor
Full Syntax highlighting, code suggest, and even a off world run time environment. plus able to test multiple scripts by building test objects with prims.
Take a Look :)
LSLForge is being actively maintained, and has most of what you describe. If there's something missing, the developer is always looking for new challenges.

Ada/Eclipse Integration

Are there any freely available Ada plugins eclipse. Eclipse is my main IDE and I occasionally need to read and modify some Ada, having it all in the one IDE would be ideal.
For Eclipse, AdaCore distributes and maintains the GNATBench plug-in, though I've never personally used it. I believe it is not GNAT specific, so it may still be of value even if you're using a different compiler--but I could be wrong on that :-)
If you're using the GNAT Ada compilation system, you've got a fully Ada-aware IDE in their GNAT Programming Studio (GPS), which is what I've been using ever since it finally stabilized a few years ago. It's got the jump-to-definition, get references, specialized search, etc., capabilities that you'd expect.
These, as well as the rest of AdaCore's GPL Ada development environment and tools, are available from AdaCore's Libre website. Download page is here.
If all you need is syntax highlighting, then maybe EclipseColorer will do the trick for you? It's a general-purpose extensible syntax highlighting engine that has definitions for Ada out of the box.
You may also want to check out Hibachi:
The goal of the Hibachi project is to create an Ada Integrated Development Environment (IDE) and tooling framework for the Eclipse platform.