lexical Questions
3
I want to find text* in Lexical JS and apply a highlight style to all matches.
import {useLexicalComposerContext} from "@lexical/react/LexicalComposerContext";
import {$createRangeSelecti...
2
Solved
Can Python-NLTK recognize input string and parse it not only based on white space but also on the content? Say, "computer system" became a phrases in this situation. Can anyone provide a sample cod...
5
I´m trying to create a "one line" message component based on Lexical, but i´m unable to prevent the enter key to create a new paragraph.
Any ideas how to accomplish this?
I´ve added styli...
5
Solved
I want to match a regular expression on a whole word.
In the following example I am trying to match s or season but what I have matches s, e, a, o and n.
[s|season]
How do I make a regular exp...
10
Solved
I am looking for a JavaScript equivalent of the Python:
pass statement that does not run the function of the ... notation?
Is there such a thing in JavaScript?
Lunette asked 28/10, 2015 at 5:53
2
Solved
I've read a couple of more comprehensive articles on the execution context and now I am sort of confused and messed up in the head.
To keep the question as brief as possible avoiding long citations...
Elwaine asked 24/10, 2020 at 10:58
13
I am working a word based game. My word database contains around 10,000 english words (sorted alphabetically). I am planning to have 5 difficulty levels in the game. Level 1 shows the easiest words...
4
Solved
I am slightly confused as to how exactly scope works in JavaScript, mainly lexical scope. I understand that variables in global scope are accessible anywhere, and the only way to create a new scope...
Direction asked 17/1, 2018 at 6:56
6
Solved
I'm working with a Lexical Analyzer program right now and I'm using Java. I've been researching for answers on this problem but until now I failed to find any. Here's my problem:
Input:
System.ou...
7
Solved
Are there any Java API(s) which will provide plural form of English words (e.g. cacti for cactus)?
Endosteum asked 6/5, 2011 at 5:49
1
Solved
I am reading The Java Language Specification 8.
I am trying to understand Chapter 2. Grammars.
Here's what I have already learned:
Semantics:
Semantics is the study of meaning.
Meaning:
Meani...
Nickens asked 17/5, 2015 at 7:23
4
Solved
Starting in Perl 5.10, it is now possible to lexically scope the context variable $_, either explicitly as my $_; or in a given / when construct.
Has anyone found good uses of the lexical $_? Does...
1
Solved
This is fixed in Perl v5.22.
Does Perl v5.18's lexical subroutines with sort? I finally had a use for them today where I had a complicated sorting routine that depends on the current position in...
Mayotte asked 13/1, 2015 at 2:10
2
Solved
1
Solved
I have the following flex rules in place.
"#"{name} {printf(" HASH | %s\n", yytext);}
. {}
It works great for my purposes and outputs upon a match to the first rule;
HASH | some matched string...
Limb asked 26/10, 2013 at 10:32
2
Solved
I am fairly new to R and while I was reading the manuals I came across a passage about lexical scoping along with this code example:
open.account <- function(total) {
list(
deposit = functio...
Agra asked 28/6, 2013 at 15:24
2
Solved
I'm using PHP 5.4 and wondering if the anonymous functions I'm making have lexical scoping?
I.e. If I have a controller method:
protected function _pre() {
$this->require = new Access_Factor...
1
Solved
How can I change my .m file to a .mm file?
I'm getting the error: cassert file not found
I have researched and found that I need to change my files to .mm?
How can I do this?
Capitalistic asked 31/3, 2013 at 21:5
1
Solved
I have a project where I need to get the lexical meaning of a word. I am thinking of using WordNet because it has its own lexicographer classes also called super-senses. I just downloaded MIT JWI a...
3
Solved
This is a code lifted straight from Perl Cookbook:
@colors = qw(red blue green yellow orange purple violet);
for my $name (@colors) {
no strict 'refs';
*$name = sub { "<FONT COLOR='$name'>@_...
Fumed asked 21/8, 2012 at 15:16
1
Solved
I am reading SICP now and don't really understand the necessity of lexical addressing described in 5.5.6 Lexical addressing of SICP.
Since it says
"Because our language is lexically scoped, the ru...
Dielectric asked 17/6, 2012 at 2:31
1
Solved
EDIT: I changed the example code after the first answer because I came up with a simple version that begs the same questions.
I am currently learning Common Lisp's scoping properties. After I thou...
Canzone asked 16/10, 2011 at 22:8
1
Solved
What is the general algorithm used by a syntax highlighter? I have implemented a simple approach using alternation in regex:
STRING_PATTERN|COMMENT_PATTERN|KEYWORD_PATTERNS
Since detecting whe...
Evangelist asked 19/7, 2011 at 1:51
2
Solved
I'm fairly new to Haskell programming and I'm having trouble understanding why I'm receiving this error in my code.
My problem is as follows: Any positive integer i can be expressed as i = 2^n*k, ...
2
I need the ability to add actions to the end of a lexical block where the action might die. And I need the exception to be thrown normally and be able to be caught normally.
Unfortunately, Perl s...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.