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

Feat/vml grammar #1472

Merged
merged 86 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from 82 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
8b05503
wip - parsing simple variables and blocks
joswig Jul 12, 2024
f086e22
test passes with sequence edits, grammar wip
joswig Jul 13, 2024
ead07ce
grammar highlighting, more tests
joswig Jul 14, 2024
2d519c5
limited folding, more highlighting
joswig Jul 15, 2024
32a9e11
issue and spawn may be lower case, added sequence
joswig Jul 15, 2024
324b978
create lint errors for grammar errors
joswig Jul 17, 2024
97496a0
wip-connect cdl to vml
joswig Sep 23, 2024
800f13f
merge in develop
joswig Sep 23, 2024
588264f
Merge branch 'develop' into feat/vml_grammar
joswig Sep 23, 2024
cd42258
wip-basic arg type linting
joswig Sep 24, 2024
5544bd3
vml if block folding
joswig Sep 24, 2024
f474d21
removed unit test reference to restricted file
joswig Sep 24, 2024
c6c06ab
if highlighting with vml
joswig Sep 24, 2024
e61028c
don't require newline after END MODULE
joswig Sep 24, 2024
cfb51cd
simple tooltips on commands
joswig Sep 24, 2024
890d750
vml argument tooltips
joswig Sep 25, 2024
f14e589
string argument support
joswig Sep 25, 2024
8158c40
fold for and while blocks
joswig Sep 25, 2024
94048d2
parse mro dictionary, enum value checking
joswig Sep 25, 2024
ee8f9b1
highlight header
joswig Sep 25, 2024
ebbd728
extracted vml linter and added spell check
joswig Sep 25, 2024
dc7b1de
comment out local only test case
joswig Sep 25, 2024
33a853f
update imports since token moved
joswig Sep 25, 2024
528f987
content assist on enum args
joswig Sep 26, 2024
8ad0cb5
include arguments in stem completion
joswig Sep 26, 2024
4ada443
more flexible grammar
joswig Sep 26, 2024
17a1e70
fix edge case when block's first child is comment
joswig Sep 26, 2024
edba46b
Merge branch 'develop' into feat/vml_grammar
joswig Sep 26, 2024
c3e611c
vml format option
joswig Oct 1, 2024
7f6c7ec
Merge branch 'develop' into feat/vml_grammar
joswig Oct 1, 2024
84b1ee9
readability and type linting
joswig Oct 1, 2024
2ad0076
linting (explicit type assertions), extract grammar rule and token st…
joswig Oct 1, 2024
3dd41ec
move vml format to own file
joswig Oct 1, 2024
ab44c6d
corrected alignment of engines in format
joswig Oct 2, 2024
7841db8
include parameters in indentation logic
joswig Oct 2, 2024
a0103db
columns with block indentation
joswig Oct 3, 2024
2fbf848
removed conditionalKeywords from adaptation layer
joswig Oct 4, 2024
fada2cb
Merge branch 'develop' into feat/vml_grammar
joswig Oct 4, 2024
0b66879
block highlighting supported in both VML and seqN
joswig Oct 4, 2024
149dc59
formatting supports simple_call and external_call
joswig Oct 4, 2024
ed868ee
tooltips for sequence engines
joswig Oct 4, 2024
afe8937
block library parameter parsing
joswig Oct 8, 2024
eb41219
type linting
joswig Oct 8, 2024
9f0e89a
hooked up form editor for enum and number vml args
joswig Oct 10, 2024
04536a4
replaced more grammar literals with constants
joswig Oct 10, 2024
c972220
replaced more literals with constants
joswig Oct 10, 2024
56c137a
connect format to indent code
joswig Oct 11, 2024
ec9e5b4
fixed stream view for repeat args
joswig Oct 12, 2024
27fc732
Merge branch 'develop' into feat/vml_grammar
joswig Oct 15, 2024
67b7628
removed console.log() debug statement
joswig Oct 15, 2024
b3706bd
added more CDL parsing test
joswig Oct 15, 2024
6b2028a
hooked up add missing arguments for vml
joswig Oct 16, 2024
ca1db9b
ensure we await transpilation to seq.json
joswig Oct 16, 2024
cc78e9f
Merge branch 'develop' into feat/vml_grammar
joswig Oct 16, 2024
63dee07
PR feedback -- add fixed_string type
joswig Oct 17, 2024
0651b52
PR feedback, blockTheme doesn't change, don't reset it
joswig Oct 17, 2024
64b1f30
improved readability, removed some unused code
joswig Oct 18, 2024
440f754
pr feedback -- move highlight code out of language definition
joswig Oct 18, 2024
b164ad2
pr feedback
joswig Oct 18, 2024
8525e1b
pr feedback - use getFromAndTo
joswig Oct 18, 2024
187955c
more detailed grammar unit test
joswig Oct 19, 2024
0329486
added parse group for Statement subtypes
joswig Oct 21, 2024
9b82553
pr feedback -- template literal readability
joswig Oct 21, 2024
91d1289
pr feedback, add type declaration for reactive variable
joswig Oct 21, 2024
e9d63ec
pr feedback -- don't recreate debounced instance of same function in …
joswig Oct 21, 2024
a3fa580
pr feedback -- don't recreate debounced instance of same function in …
joswig Oct 22, 2024
509818c
pr feedback - kebab-case.ts -> camelCase.ts
joswig Oct 22, 2024
0a182e2
update import
joswig Oct 22, 2024
04a1ae3
removed unused argument, variable rename
joswig Oct 22, 2024
710bf93
move theme to dedicated directory
joswig Oct 22, 2024
85e5b33
update another import, typescript plugin doesn't detect import path c…
joswig Oct 22, 2024
31ea81b
unit tests for vml tree navigation
joswig Oct 23, 2024
0d316d1
code readability and minor improvement on sequence spacing
joswig Oct 23, 2024
90fe566
split up unit tests for vml, extract some reused non-test specific co…
joswig Oct 23, 2024
cfb4295
Merge branch 'develop' into feat/vml_grammar
joswig Oct 23, 2024
1b5566f
Merge branch 'develop' into feat/vml_grammar
joswig Oct 24, 2024
1dabd9a
hide output buttons and editor for languages that aren't converted
joswig Oct 25, 2024
0971656
Merge branch 'develop' into feat/vml_grammar
joswig Oct 25, 2024
f43b95e
fix import for vml files
joswig Oct 26, 2024
4f0cf64
Include context for parse errors
joswig Oct 27, 2024
7d16a2b
group adjacent token errors
joswig Oct 28, 2024
3380511
check vml mode in single place
joswig Oct 28, 2024
1e966d2
pr feedback - simplify height logic, make undefined check explicit
joswig Oct 29, 2024
0399aee
cleaned up grammar warning, only allow sequence import for new sequences
joswig Oct 30, 2024
095f4d6
always show import button
joswig Oct 30, 2024
d21812d
Merge branch 'develop' into feat/vml_grammar
joswig Oct 30, 2024
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
13 changes: 10 additions & 3 deletions src/components/sequencing/ArgumentTooltip.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
import { getAllEnumSymbols } from '../../utilities/sequence-editor/sequence-linter';

export let arg: FswCommandArgument;
export let commandDictionary: CommandDictionary;
export let commandDictionary: CommandDictionary | null;

let enumSymbolsDisplayStr: string;
const MAX_ENUMS_TO_DISPLAY = 20;

let enumSymbolsDisplayStr: string = '';

$: if (commandDictionary && arg?.arg_type === 'enum') {
const enumValues = getAllEnumSymbols(commandDictionary.enumMap, arg.enum_name);
enumSymbolsDisplayStr = enumValues?.join(' | ') ?? '';
const values = enumValues ?? [];
enumSymbolsDisplayStr = values.slice(0, MAX_ENUMS_TO_DISPLAY).join(' | ');
const numHiddenValues = values.length - MAX_ENUMS_TO_DISPLAY;
if (numHiddenValues > 0) {
enumSymbolsDisplayStr += ` ... ${numHiddenValues} more`;
}
}
</script>

Expand Down
Loading
Loading