Welcome to Mbdyn-Lexer Documentation!¶
Version: 0.0.4
Mbdyn-lexer is a Pygments lexer plugin for processing MBDyn input files. It enables:
/* processed by MBDynLexer
it supports multiline c-style comments
*/
begin: block name;
description: arglist;
end: block name;
# definition examples:
set: const real x = -1.e-3;
set: integer N;
set: bool boo = TRUE;
set: string str_name = "strings
can be multiline, contain \" and
unicode ⛈️";
set: [element,VARNAME,ELEMLABEL,joint,string="Fz"];
#beginpreprocess # from here use PythonLexer
import MBDynPreprocess
@fun(arg = {'set:': all, 2: True})
class Foo: pass
#endpreprocess # back to MBDynLexer
gravity: uniform, 0., 0., -1., const, 9.81;
end: elements;