Posts and uploaded files are owned by the poster. jbotcan.org is not liable for the content submitted by the poster. Downloading any poster-submitted files is doing so at your own risk.
I was looking for the Lojban words for "parser" and "scanner" in the computer science sense. I've not been able to find them so I guessed I had to invent mine (assuming they are not already there).So, since a scanner (or lexer) is something that analyze a text to extract tokens (words) I thought that lalvla = lanli+valsi = analyzer + wordcould serve.It could be: x1 is a scanner/lexer/tokenizer for language x2 written in language x3Where x3 is a programming language or a formalism.In the same vein: lalgen = lanli + gerna = analyzer + grammarcould serve for: x1 is a parser for language x2 written in language x3 producing x4x4 is there as a parser may produce a derivation tree, an intermediate form, an error report etc.Now, does the above make any sense to you? remod
I was looking for the Lojban words for "parser" and "scanner" in the computer science sense. I've not been able to find them so I guessed I had to invent mine (assuming they are not already there).
So, since a scanner (or lexer) is something that analyze a text to extract tokens (words) I thought that lalvla = lanli+valsi = analyzer + wordcould serve.
It could be: x1 is a scanner/lexer/tokenizer for language x2 written in language x3Where x3 is a programming language or a formalism.
In the same vein: lalgen = lanli + gerna = analyzer + grammarcould serve for: x1 is a parser for language x2 written in language x3 producing x4
x4 is there as a parser may produce a derivation tree, an intermediate form, an error report etc.
Now, does the above make any sense to you?
remod
... now that I think about it. Should it be vlalal (valsi+lanli) and genlal (gerna+lanli)?Is there a rule about the order in which the gismu have to appear in a lujvo?
... now that I think about it. Should it be vlalal (valsi+lanli) and genlal (gerna+lanli)?
Is there a rule about the order in which the gismu have to appear in a lujvo?
i seem to recall {genturfa'i} being used for parser.
>>1368>> {genturfa'i}If I understand it correctly, it defines a parser as something "that finds the grammatical structures". I'm ok with that (even if I would have argued a little on the choice of "find/discover").Now,to be consistent, a lexer should be something that "finds the words as defined by a grammar". Should it be {genvlafa'i} ?
>>1368
>> {genturfa'i}
If I understand it correctly, it defines a parser as something "that finds the grammatical structures". I'm ok with that (even if I would have argued a little on the choice of "find/discover").
Now,to be consistent, a lexer should be something that "finds the words as defined by a grammar". Should it be {genvlafa'i} ?
>>1366"vlalanli" and "genlanli". The right-most part of the lujvo is the most basic meaning of the word. Thus a "lanvla" is fundamentally a word ("analyzed/analytical-word"?), and "vlalanli" is fundamentally an analyzer.>>1369Perhaps "vlafendi", "word-partitioner" for "lexer"? Unfortunately, that's easily interpreted as "splits words" rather than "splits into words"."genturfa'i" makes sense, since a parser takes a stream of input and outputs a grammar-structure (specifically, a parse tree), so it could be "x1 finds/discovers the grammar-structure of x2". "lexer" could simply be "vlafa'i". If you want to be more specific than "word-finder", you could use the tanru "vlafa'i samvelkanji", "word-finder computer-algorithm". In the appropriate context, though, "vlafa'i" will probably be sufficient.
>>1366
"vlalanli" and "genlanli". The right-most part of the lujvo is the most basic meaning of the word. Thus a "lanvla" is fundamentally a word ("analyzed/analytical-word"?), and "vlalanli" is fundamentally an analyzer.
>>1369
Perhaps "vlafendi", "word-partitioner" for "lexer"? Unfortunately, that's easily interpreted as "splits words" rather than "splits into words".
"genturfa'i" makes sense, since a parser takes a stream of input and outputs a grammar-structure (specifically, a parse tree), so it could be "x1 finds/discovers the grammar-structure of x2". "lexer" could simply be "vlafa'i". If you want to be more specific than "word-finder", you could use the tanru "vlafa'i samvelkanji", "word-finder computer-algorithm". In the appropriate context, though, "vlafa'i" will probably be sufficient.