Skip to content

Tandaradei/c-nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expressionviewer for ANSI-C / C89

Usage

Process arguments:

  • -expr "<my expr>": The expression to parse
  • -symbols "<symbols list>": List of symbols (each <identifier>,<type(int\double)>,<value>,<const(0\1)>) separated by ';' => "a,double,3.0,1;b,int,5,0"
  • -d3: Print JSON output to stdout
  • -tex: Print tex output to stdout
  • -d3_file "<filename>": Write JSON output to file
  • -tex_file "<filename>": Write tex output to file

If both flags -d3 and -tex are set, both outputs will be written to stdout (tex output first).

Web installation

Copy all files from web/ and the build artifact which has to be named "c-nodes.out" to your website source folder (nginx default /var/www/html). PHP FastCGI must be enabled (tested with php-fpm).

Examples

c = 1 + 3.2 * (4 + b) * a++

To include in a .tex file

Example

SVG representation

Example

About

Expressionviewer for ANSI-C / C89

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published