slice2java(1)

πŸ“¦
version 3.7.10 Β· 2 versions
, in arch rolling, debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– NAME πŸ’–

okay so bestie, meet slice2matlab β€” it's The Slice to MATLAB compiler πŸŽ€βœ¨ and honestly? she eats. this is her manual page, filed under slice2java(1) in the General Commands Manual, and yes we're gonna go through every single thing she does because she deserves that energy πŸ’…


✨ SYNOPSIS ✨

slice2matlab [options] [files]

short, sweet, iconic. you give her options, you give her files, she gives you MATLAB. periodt 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, slice2matlab compiles Slice files to MATLAB, no cap. and during that whole compilation moment, the macro __SLICE2MATLAB__ is defined. that's just a fact bestie πŸ’œ

if you want the full documentation for slice2matlab, it lives online, right here:

https://doc.zeroc.com/ice/3.7/language-mappings/matlab-mapping/client-
side-slice-to-matlab-mapping/slice2matlab-command-line-options

go read it, i'll wait 🌸


πŸ‘‘ OPTIONS πŸ‘‘

every single flag, all of them, zero skips, we're doing this πŸ“

  • -h, --help β€” shows you a help message. a little "hi bestie here's what i do" moment πŸ™ˆ
  • -v, --version β€” tells you the compiler version. version check, slay ✨
  • -DNAME β€” defines the preprocessor symbol NAME. that's it, that's the job πŸ’…
  • -DNAME=DEF β€” defines the preprocessor symbol NAME and gives it the value DEF. now she has ✨range✨
  • -UNAME β€” undefines the preprocessor symbol NAME. we're un-defining, we're letting go, growth 🌱
  • -IDIR β€” adds the directory DIR to the search path for #include directives. where do the includes live? here, apparently πŸ’–
  • -E β€” prints the preprocessor output on stdout. just vibes, just output, no notes πŸ“
  • --output-dir DIR β€” puts the generated files into directory DIR. a lil home for your babies 🏠
  • -d, --debug β€” prints debug information showing the operation of the Slice parser. lowkey nosy but in a helpful way πŸ”
  • --depend β€” prints dependency information to standard output by default, or to the file specified by the --depend-file option. and listen: no code is generated when this option is specified 🚨 like, none. zero. she's just doing the dependency thing rn.
  • --depend-xml β€” same deal but the dependency information comes out in XML format, to standard output by default, or to the file specified by the --depend-file option. also: no code is generated when this option is specified. no code bestie, i said what i said πŸ’€
  • --depend-file FILE β€” sends dependency information to the specified file. the output format depends on whether --depend or --depend-xml is also specified β€” so like, pick your format, she follows your lead πŸŽ€
  • --validate β€” checks the command-line options you provided for correctness, and does not generate any code. vibe check only, no output 🧚
  • --all β€” generates code for all Slice definitions, including those from included files. everyone's invited to the party, no gatekeeping πŸŽ‰
  • --list-generated β€” emits a list of generated files in XML format. receipts, but make it XML 🧾
ngl the --depend and --depend-xml ones are the "look but don't touch" flags β€” they tell you stuff and then generate absolutely nothing. don't be surprised, i warned you 🫢

🌈 SEE ALSO 🌈

go bother her sisters, they're all iconic too:


and that's the whole page, bestie πŸ’– this was the slice2java(1) manual page from the General Commands Manual β€” mwah, go compile something gorgeous, i'm obsessed with you πŸŽ€βœ¨πŸ¦‹πŸ’