Hi!
neos universal compiler (that can compile any programming language) is successfully running the tokenization stage
tokenizing a program written in the neos reference language. #cpp #coding #compiler #compsci #gamedev
/Flibble
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language) is
successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler #compsci
#gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language) is
successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler #compsci
#gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language) is
successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler #compsci
#gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
On 15/03/2025 15:08, Mr Flibble wrote:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language)
is successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler
#compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
<https://www.99-bottles-of-beer.net/language-piet-1269.html>
Good luck with that.
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language)
is successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler
#compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
On Sun, 16 Mar 2025 10:35:25 +0000, Richard Heathfield wrote:
On 15/03/2025 15:08, Mr Flibble wrote:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language)
is successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler
#compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
<https://www.99-bottles-of-beer.net/language-piet-1269.html>
Good luck with that.
No reason why neos couldn't support Piet.
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language)
is successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler
#compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming language.
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language) >>>>>> is successfully running the tokenization stage tokenizing a program >>>>>> written in the neos reference language. #cpp #coding #compiler
#compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming language.
If it is configured the same for each programming language then how does
it know how to tokenize?
Hi!
neos universal compiler (that can compile any programming language) is successfully running the tokenization stage
tokenizing a program written in the neos reference language. #cpp #coding #compiler #compsci #gamedev
/Flibble
Mr Flibble <flibble@reddwarf.jmc.corp> wrote:
Hi!
neos universal compiler (that can compile any programming language) is
successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler #compsci
#gamedev
/Flibble
How is neos (the tokenisation stage) essentially different from lex (the
~50 year old unix utility)? What advantages will neos (if completed)
offer over a compiler based on a lex/yacc combination?
On Mon, 17 Mar 2025 21:43:47 +0000, Alan Mackenzie wrote:
Mr Flibble <flibble@reddwarf.jmc.corp> wrote:
Hi!
neos universal compiler (that can compile any programming language) is
successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler #compsci
#gamedev
/Flibble
How is neos (the tokenisation stage) essentially different from lex (the
~50 year old unix utility)? What advantages will neos (if completed)
offer over a compiler based on a lex/yacc combination?
neos grammar definition is superior to lex's in that it is based on EBNF (rather than a horrid mixture of C and regex) so is much more human
friendly potentially opening up language design to the masses possibly
making neos a technological singularity in the areas of language and
compiler design.
lex/yacc generates a static frontend (that must be compiled) that is different for each supported programming language whilst neos has just one frontend which does not require compilation.
/Flibble
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming language) >>>>>>> is successfully running the tokenization stage tokenizing a program >>>>>>> written in the neos reference language. #cpp #coding #compiler
#compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming language.
If it is configured the same for each programming language then how does
it know how to tokenize?
You configure it by providing a language specific neosBNF schema (grammar) file (an input to the compilalation process).
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming
language)
is successfully running the tokenization stage tokenizing a
program written in the neos reference language. #cpp #coding
#compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how
does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
lex/yacc generates a static frontend (that must be compiled) that is different for each supported programming language whilst neos has just one frontend which does not require compilation.
On 18/03/2025 14:08, Mr Flibble wrote:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming
language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how
does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
We deduce, then, that neos universal compiler (that can compile any programming language) cannot compile FORTRAN 66 or ALGOL 60.
We can further deduce that you do not consider FORTRAN 66 and ALGOL 60
to be programming languages.
On Tue, 18 Mar 2025 14:20:04 +0000, Richard Heathfield wrote:
On 18/03/2025 14:08, Mr Flibble wrote:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how >>>>>> does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
We deduce, then, that neos universal compiler (that can compile any
programming language) cannot compile FORTRAN 66 or ALGOL 60.
We can further deduce that you do not consider FORTRAN 66 and ALGOL 60
to be programming languages.
Your deduction is wrong, my universal compiler has the CAPABILITY to
compile any programming language and to add support for a particular
language a schema file has to be provided.
Your "further deduction" predicated on your first deduction is thus also wrong.
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming
language)
is successfully running the tokenization stage tokenizing a
program written in the neos reference language. #cpp #coding >>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how
does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
On 18/03/2025 14:30, Mr Flibble wrote:
On Tue, 18 Mar 2025 14:20:04 +0000, Richard Heathfield wrote:
On 18/03/2025 14:08, Mr Flibble wrote:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then
how does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or >>>>> Algol 60?
Not yet.
We deduce, then, that neos universal compiler (that can compile any
programming language) cannot compile FORTRAN 66 or ALGOL 60.
We can further deduce that you do not consider FORTRAN 66 and ALGOL 60
to be programming languages.
Your deduction is wrong, my universal compiler has the CAPABILITY to
compile any programming language and to add support for a particular
language a schema file has to be provided.
So what you seem to be saying is that your universal compiler lacks the CAPABILITY to compile any programming language until that capability is added. So my first deduction was correct.
Your "further deduction" predicated on your first deduction is thus
also wrong.
I don't see why.
Your original claim (which is what I was addressing) was that it CAN
(note: present tense) compile any programming language. Since by your
own admission it can't (yet) currently compile either FORTRAN 66 or
ALGOL 60 until such time as schema files are devised for those
languages, either your original claim was mistaken or you do not
consider FORTRAN 66 and ALGOL 60 to be programming languages. Since we
now learn (by your rejection of the latter half) that you presumably
/do/ consider FORTRAN 66 and ALGOL 60 to be programming languages, we
are forced to conclude that your original claim was in error.
We now have three examples of languages it can't compile: FORTRAN 66,
ALGOL 60, and Piet. You seem to be of the opinion that potential is achievement. It isn't.
Were you to claim that your "universal" compiler has the POTENTIAL to
compile any programming language, but to add support for a particular language a schema file has to be provided, that seems to me to be a much
more defensible claim.
On Tue, 18 Mar 2025 15:01:34 +0000, Richard Heathfield wrote:
On 18/03/2025 14:30, Mr Flibble wrote:
On Tue, 18 Mar 2025 14:20:04 +0000, Richard Heathfield wrote:
On 18/03/2025 14:08, Mr Flibble wrote:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming >>>>>>>>> language.
If it is configured the same for each programming language then >>>>>>>> how does it know how to tokenize?
You configure it by providing a language specific neosBNF schema >>>>>>> (grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or >>>>>> Algol 60?
Not yet.
We deduce, then, that neos universal compiler (that can compile any
programming language) cannot compile FORTRAN 66 or ALGOL 60.
We can further deduce that you do not consider FORTRAN 66 and ALGOL 60 >>>> to be programming languages.
Your deduction is wrong, my universal compiler has the CAPABILITY to
compile any programming language and to add support for a particular
language a schema file has to be provided.
So what you seem to be saying is that your universal compiler lacks the
CAPABILITY to compile any programming language until that capability is
added. So my first deduction was correct.
Your first deduction was incorrect.
On 18/03/2025 15:06, Mr Flibble wrote:
On Tue, 18 Mar 2025 15:01:34 +0000, Richard Heathfield wrote:
On 18/03/2025 14:30, Mr Flibble wrote:
On Tue, 18 Mar 2025 14:20:04 +0000, Richard Heathfield wrote:
On 18/03/2025 14:08, Mr Flibble wrote:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>>>>> program written in the neos reference language. #cpp >>>>>>>>>>>>>> #coding #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming >>>>>>>>>> language.
If it is configured the same for each programming language then >>>>>>>>> how does it know how to tokenize?
You configure it by providing a language specific neosBNF schema >>>>>>>> (grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 >>>>>>> or Algol 60?
Not yet.
We deduce, then, that neos universal compiler (that can compile any
programming language) cannot compile FORTRAN 66 or ALGOL 60.
We can further deduce that you do not consider FORTRAN 66 and ALGOL
60 to be programming languages.
Your deduction is wrong, my universal compiler has the CAPABILITY to
compile any programming language and to add support for a particular
language a schema file has to be provided.
So what you seem to be saying is that your universal compiler lacks
the CAPABILITY to compile any programming language until that
capability is added. So my first deduction was correct.
Your first deduction was incorrect.
Tis tisn't tis.
Have a good day.
you are one of those people
who are usually fractally wrong.
On 2025-03-17 16:53:01 +0000, Mr Flibble said:[...]
You configure it by providing a language specific neosBNF schema (grammar) >> file (an input to the compilalation process).Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example
of something that cannot be defined with a regular expression and is therefore impossible or at least complicated with an ordinary tokenizer.
--
Mikko
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming
language)
is successfully running the tokenization stage tokenizing a
program written in the neos reference language. #cpp #coding >>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how
does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
Mikko <mikko.levanto@iki.fi> wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
[ .... ]
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example
of something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary tokenizer.
Would you please be more specific about just what in an Algol 60 string literal prevents a regexp from parsing it. Not for any special reason,
just that I'm curious. Maybe an example of such a string would be interesting. Thanks!
--
Mikko
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming
language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how
does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example of something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary tokenizer.
On Wed, 19 Mar 2025 12:26:20 +0200, Mikko wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how >>>>>> does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example of
something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary
tokenizer.
neos does not use regular expressions and the neos grammar is context sensitive (i.e. not context free).
/Flibble
On Wed, 19 Mar 2025 12:26:20 +0200, Mikko wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how >>>>>> does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or
Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example of
something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary tokenizer.
neos does not use regular expressions and the neos grammar is context sensitive (i.e. not context free).
On 2025-03-19 11:02:49 +0000, Alan Mackenzie said:
Mikko <mikko.levanto@iki.fi> wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
[ .... ]
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or >>>>> Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example
of something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary tokenizer.
Would you please be more specific about just what in an Algol 60 string
literal prevents a regexp from parsing it. Not for any special reason,
just that I'm curious. Maybe an example of such a string would be
interesting. Thanks!
Algol 60 has different characters for opening and closing quotes (something like 2018 and 2019 of Unicode) ....
.... and allows any number of nested quotes.
--
Mikko
Mikko <mikko.levanto@iki.fi> wrote:
On 2025-03-19 11:02:49 +0000, Alan Mackenzie said:
Mikko <mikko.levanto@iki.fi> wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
[ .... ]
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or >>>>>> Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example
of something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary tokenizer.
Would you please be more specific about just what in an Algol 60 string
literal prevents a regexp from parsing it. Not for any special reason,
just that I'm curious. Maybe an example of such a string would be
interesting. Thanks!
Algol 60 has different characters for opening and closing quotes (something >> like 2018 and 2019 of Unicode) ....
Most current languages, including C, have different openers and closers
for comments, which is surely analogous.
.... and allows any number of nested quotes.
Ah OK. Regular expressions can't parse arbitrarily nested structures.
But Backus-Nauer Form can express them, and a push-down automaton can
process them.
Are you sure about ordinary tokenizers not being able to handle such arbitrarily nested things in a non-complicated way?
On 2025-03-19 14:32:30 +0000, Mr Flibble said:
On Wed, 19 Mar 2025 12:26:20 +0200, Mikko wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming
language.
If it is configured the same for each programming language then how >>>>>>> does it know how to tokenize?
You configure it by providing a language specific neosBNF schema
(grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 or >>>>> Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example of
something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary tokenizer.
neos does not use regular expressions and the neos grammar is context
sensitive (i.e. not context free).
A context free grammar should be enough for tokenizing strings of Algol 60.
Tokenizing statements of FORTRAN 66 is a harder problem.
On 2025-03-19 16:11:18 +0000, Mikko said:
On 2025-03-19 14:32:30 +0000, Mr Flibble said:
On Wed, 19 Mar 2025 12:26:20 +0200, Mikko wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming >>>>>>>>> language.
If it is configured the same for each programming language then >>>>>>>> how does it know how to tokenize?
You configure it by providing a language specific neosBNF schema >>>>>>> (grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66
or Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example
of something that cannot be defined with a regular expression and is
therefore impossible or at least complicated with an ordinary
tokenizer.
neos does not use regular expressions and the neos grammar is context
sensitive (i.e. not context free).
A context free grammar should be enough for tokenizing strings of Algol
60.
Tokenizing statements of FORTRAN 66 is a harder problem.
Some test cases for a FORTRAN IV tokenizer:
REALITY IS, AS I MAY LOGICALLY SAY, REAL LOGICAL = WHAT I SAY
Note that these lines begin with 8 spaces.
Tokens on the first line:
keyword REAL identifier ITYIS comma identifier ASIMAY end of statement
Tokens on the second line:
keyword LOGICAL identifier LYSAY comma identifier REAL end of statement
Tokens on the third line:
identifier LOGICAL assignment symbol identifier WHAT I SAY
Parser needs to know whether an instance of REAL or LOGICAL is an
identifier or keyword.
I don't understand how neos can be configred to tokenize the above test
lines and other FORTRAN IV statements.
On Fri, 28 Mar 2025 14:01:40 +0200, Mikko wrote:
On 2025-03-19 16:11:18 +0000, Mikko said:
On 2025-03-19 14:32:30 +0000, Mr Flibble said:
On Wed, 19 Mar 2025 12:26:20 +0200, Mikko wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing a >>>>>>>>>>>>>> program written in the neos reference language. #cpp #coding >>>>>>>>>>>>>> #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming >>>>>>>>>> language.
If it is configured the same for each programming language then >>>>>>>>> how does it know how to tokenize?
You configure it by providing a language specific neosBNF schema >>>>>>>> (grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 >>>>>>> or Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good example >>>>> of something that cannot be defined with a regular expression and is >>>>> therefore impossible or at least complicated with an ordinary
tokenizer.
neos does not use regular expressions and the neos grammar is context
sensitive (i.e. not context free).
A context free grammar should be enough for tokenizing strings of Algol
60.
Tokenizing statements of FORTRAN 66 is a harder problem.
Some test cases for a FORTRAN IV tokenizer:
REALITY IS, AS I MAY LOGICALLY SAY, REAL LOGICAL = WHAT I SAY
Note that these lines begin with 8 spaces.
Tokens on the first line:
keyword REAL identifier ITYIS comma identifier ASIMAY end of statement
Tokens on the second line:
keyword LOGICAL identifier LYSAY comma identifier REAL end of statement
Tokens on the third line:
identifier LOGICAL assignment symbol identifier WHAT I SAY
Parser needs to know whether an instance of REAL or LOGICAL is an
identifier or keyword.
I don't understand how neos can be configred to tokenize the above test
lines and other FORTRAN IV statements.
If a native FORTRAN IV compiler can parse it then neos can parse it as
long as it is somehow expressable in the neos attribute grammar.
On 3/28/2025 8:14 AM, Mr Flibble wrote:
On Fri, 28 Mar 2025 14:01:40 +0200, Mikko wrote:
On 2025-03-19 16:11:18 +0000, Mikko said:
On 2025-03-19 14:32:30 +0000, Mr Flibble said:
On Wed, 19 Mar 2025 12:26:20 +0200, Mikko wrote:
On 2025-03-18 14:08:50 +0000, Mr Flibble said:
On Tue, 18 Mar 2025 15:59:45 +0200, Mikko wrote:
On 2025-03-17 16:53:01 +0000, Mr Flibble said:
On Mon, 17 Mar 2025 11:21:05 +0200, Mikko wrote:
On 2025-03-16 18:40:42 +0000, Mr Flibble said:
On Sun, 16 Mar 2025 12:28:24 +0200, Mikko wrote:
On 2025-03-15 15:08:47 +0000, Mr Flibble said:
On Sat, 15 Mar 2025 11:55:52 +0200, Mikko wrote:
On 2025-03-15 04:00:52 +0000, Mr Flibble said:
Hi!
neos universal compiler (that can compile any programming >>>>>>>>>>>>>>> language)
is successfully running the tokenization stage tokenizing >>>>>>>>>>>>>>> a program written in the neos reference language. #cpp >>>>>>>>>>>>>>> #coding #compiler #compsci #gamedev
/Flibble
Can it tokenize FORTRAN 60 or FORTRAN IV ?
ANY programming language.
/Flibble
How is neos configured to tokenize FORTRAN 60 ?
The same way you would configure it for any other programming >>>>>>>>>>> language.
If it is configured the same for each programming language then >>>>>>>>>> how does it know how to tokenize?
You configure it by providing a language specific neosBNF schema >>>>>>>>> (grammar)
file (an input to the compilalation process).
Is there a neosBNF schema that describes the tokens of FORtRAN 66 >>>>>>>> or Algol 60?
Not yet.
The definition of string literal of Algol 60 would be a good
example of something that cannot be defined with a regular
expression and is therefore impossible or at least complicated with >>>>>> an ordinary tokenizer.
neos does not use regular expressions and the neos grammar is
context sensitive (i.e. not context free).
A context free grammar should be enough for tokenizing strings of
Algol 60.
Tokenizing statements of FORTRAN 66 is a harder problem.
Some test cases for a FORTRAN IV tokenizer:
REALITY IS, AS I MAY LOGICALLY SAY, REAL LOGICAL = WHAT I SAY
Note that these lines begin with 8 spaces.
Tokens on the first line:
keyword REAL identifier ITYIS comma identifier ASIMAY end of statement
Tokens on the second line:
keyword LOGICAL identifier LYSAY comma identifier REAL end of
statement
Tokens on the third line:
identifier LOGICAL assignment symbol identifier WHAT I SAY
Parser needs to know whether an instance of REAL or LOGICAL is an
identifier or keyword.
I don't understand how neos can be configred to tokenize the above
test lines and other FORTRAN IV statements.
If a native FORTRAN IV compiler can parse it then neos can parse it as
long as it is somehow expressable in the neos attribute grammar.
But that was the question: Can it be parsed in a neos expressible
grammar? Note that those early Fortran grammars were 1) not finite
state, 2) not context free, and 3) inherently ambiguous.It was possible,
for example, to write a "format" and an "assignment" statement that were character to character identical. As an aside, a friend who wrote an
early Fortran compiler that compiled such a chimera so that it would do
an assignment if executed and could be referenced as a format from an IO statement.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 161:07:00 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,056 |
Messages: | 6,416,496 |