Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change lexing #191

Merged
merged 50 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
62e940b
Move 10% of lexer to owned struct
kaleidawave Aug 16, 2024
35d4dff
Experiment with second lexer implementation and create second Express…
kaleidawave Sep 7, 2024
08d8d06
Replace lexer.rs
kaleidawave Sep 7, 2024
266346f
Temporarily convert most things to comments to new structure
kaleidawave Sep 7, 2024
f2b8a99
More items moved over
kaleidawave Sep 10, 2024
14db3cd
remove tokenizer-lib
kaleidawave Sep 10, 2024
6d39e1b
remove tokeniser-lib from Cargo.lock
kaleidawave Sep 10, 2024
b049bcd
Further refactoring of parsing to new lexing setup
kaleidawave Sep 14, 2024
4a03fa3
Merge branch 'main' into merge-lexer
kaleidawave Sep 14, 2024
bdd42f2
temp checker changes
kaleidawave Sep 14, 2024
d0e4d5d
src and formatting fixes
kaleidawave Sep 14, 2024
917f241
Few fixes
kaleidawave Sep 14, 2024
afb6dd7
More parser improvements
kaleidawave Sep 25, 2024
4f7802f
Fixes for arrow functions (both expressions and type annotations)
kaleidawave Oct 5, 2024
68a6250
Add `export namespace` declaration support
kaleidawave Oct 5, 2024
b6a4422
Fix for type checking JSX
kaleidawave Oct 5, 2024
60bf3b2
More errors and fixes
kaleidawave Oct 7, 2024
0efe9d7
Remove stuff
kaleidawave Oct 7, 2024
d133428
Improvements and fixes
kaleidawave Oct 13, 2024
724fcc2
More fixes
kaleidawave Oct 15, 2024
3017e37
Merge branch 'main' into merge-lexer
kaleidawave Nov 18, 2024
cbcbe17
Some small fixes + clippy
kaleidawave Nov 19, 2024
a4c7f9a
Should always check it compiles
kaleidawave Nov 19, 2024
773487a
More fixes
kaleidawave Nov 19, 2024
5c0a622
Fixes
kaleidawave Nov 22, 2024
bea95b9
More fixes
kaleidawave Nov 22, 2024
624adae
Fixes to parsing
kaleidawave Nov 22, 2024
3323409
Comment across lines and fixes to string and template parsing
kaleidawave Dec 29, 2024
e3702cf
Fixes to class members and more
kaleidawave Dec 29, 2024
7434a12
Checker clippy fixes
kaleidawave Dec 29, 2024
f9b9d80
Bracketed item parsing fixes
kaleidawave Dec 29, 2024
7d884e6
More fixes
kaleidawave Dec 29, 2024
f972a37
Rename lexer path, add skip before checking end, add trailing to arra…
kaleidawave Dec 29, 2024
87ba562
Fixes to regex and import expression errors
kaleidawave Dec 29, 2024
3aacc07
Change Regex flag to "" instead of None
kaleidawave Dec 30, 2024
d0ac989
More improvements
kaleidawave Dec 30, 2024
cdf5ac3
Flags fix
kaleidawave Dec 30, 2024
7c4c8d4
More fixes
kaleidawave Dec 30, 2024
6d7c156
Add non-null assertion to assignables, fix unused things, change temp…
kaleidawave Dec 31, 2024
c68f955
Fix string indexing midway through character, fix typo and cycle in p…
kaleidawave Jan 1, 2025
ea08a2c
More fixes
kaleidawave Jan 1, 2025
53de976
Change `starts_with_number`
kaleidawave Jan 1, 2025
0d68026
Rename lexer method. Allow unicode codepoints in identifiers. Fix for…
kaleidawave Jan 5, 2025
067a090
Fix some JSX issues and fix (some of) bracket lookahead
kaleidawave Jan 5, 2025
68bbdf4
Merge branch 'main' into merge-lexer
kaleidawave Feb 6, 2025
b001d48
Enum stuff, CI stuff and improvements
kaleidawave Feb 6, 2025
d82cc6a
Some more fixes
kaleidawave Feb 6, 2025
60856e1
Update specification error message and use char_indicies rather than …
kaleidawave Feb 6, 2025
921e560
Fix for reserved identifier at end of source
kaleidawave Feb 6, 2025
a05239f
Another fix
kaleidawave Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Flags fix
kaleidawave committed Dec 30, 2024
commit cdf5ac3225156911bb71398f751d00b6ba37b101
4 changes: 2 additions & 2 deletions checker/src/features/constant_functions.rs
Original file line number Diff line number Diff line change
@@ -694,9 +694,9 @@ pub(crate) fn call_constant_function(
return Err(ConstantFunctionError::CannotComputeConstant);
};

Some(flags.clone())
flags.clone()
}
None => None,
None => String::new(),
};

let regexp = types.new_regexp(&pattern.clone(), &flags, &call_site.without_source());