Languages Lexer, Parsers, Compilers, etc.

A discussion of tools that could be useful for editing various parts of OXT
Post Reply
User avatar
OpenXTalkPaul
Posts: 2414
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Languages Lexer, Parsers, Compilers, etc.

Post by OpenXTalkPaul »

I wanted to make a thread to collect links to tutorials and software related to creating a programming languages.

ANTLR4 mega tutorial here:
https://tomassetti.me/antlr-mega-tutori ... #chapter11
It might someday be a good idea to crowd-fun some training/consult from that company in the link above.
User avatar
richmond62
Posts: 4271
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Creating Languages - Lexer, Parsers, Compilers, etc.

Post by richmond62 »

Surely 'extending and modifying' rather than 'creating'?

A guide on how to "attach an extra leg" to xTalk would be extremely useful: and then how to 'fold back in' that "extra leg" so that other people could take advantage of it.

I do not mean XCMD type add ons, but modifying the mother-ship.
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 2414
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Creating Languages - Lexer, Parsers, Compilers, etc.

Post by OpenXTalkPaul »

I'm interested in xTalk language interpreter(s) that can output compiled code either ahead of time or just-in-time, runtime engine(s) to run on many platforms, that's why I'm interested in ANTLR
(HyperTalk 2.4 xTalk agrammar here: https://github.com/antlr/grammars-v4/bl ... perTalk.g4),
ANTLR:
What is ANTLR?
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.
and it's why I'm interested in the sort of training and information, and type of work this company does (I added the bold for emphasis):
Services we offer based on ANTLR
We build parsers based on ANTLR. We can provide parsers written in C++, Python, Javascript, C#, Java, or any other language supported by ANTLR. If you have the specifications of an existing language, or some examples we can create, test and deliver to you a parser that we guarantee to work.
https://strumenta.com/antlr-consulting/
They have courses.

I'm not sure what you're on about really. We already have a C++ parser and runtime engine, that's true, so I changed the title of the thread so as to not exlude preexisting xTalk interpreting engine(s).

Anyway the topic is related to the whole xTalk thing here. If you aren't interested in this topic then just keep scrolling on to the next topic.

I think I'm going to start collecting information in more 'Stickie' type threads that I can add to. It's getting difficult to re-find old topics later.
User avatar
OpenXTalkPaul
Posts: 2414
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Languages Lexer, Parsers, Compilers, etc.

Post by OpenXTalkPaul »

Before reading the last answer to this Stack OverFlow question I hadn't realize you could use ANTL4 with Python, and so now I'm wondering if an xTalk interpreter could 'piggy-back' on top of Python.
https://stackoverflow.com/questions/230 ... ic-example
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest