c - Looking for C90 Grammar compatible with ANTLR 4 or MPlex/MPPG -


i wrote c90 cross-compiler in c# friend's custom cpu produces text file containg assembly language. feed assembler wrote in python, produces text file containing machine code. transmit machine via serial connection, , @ point custom cpu runs program.

i bundle whole process simple pressing 'compile' button, in modern ide. also, speaking of modern ide's, nice develop our c code in other notepad , enjoy of amenities these modern ide's have offer such file management, in-place compilation, syntax highlighting, , intelli-sense.

now, use visual studio of development aware comes bundled c/c++ compiler. nice able use visual c++ develop c code our custom cpu , override it's 'compile' feature invokes compiler tool-chain instead of c++ compiler.

the problem envision approach that:

  1. i don't think it's possible override 'compile' feature and
  2. the syntax highlighting/intelli-sense not conform c90 standard. can live #2 know if #1 possible.

failing need bite bullet , integrate custom compiler visual studio , doing requires have c90 grammar file that's compatible either antlr or mplex/mppg can output parser/scanner in c# visual studio can use it's syntax highlighting/intelli-sense.

the grammar file see listed on antlr site c99; know of c90 implementation? http://slps.github.io/zoo/#ansi_c90 seems have 1 grammar in bgf, ebnf, dms bnf, , sdf formats believe not compatible either of tools mentioned. appreciated.

the new msbuild-based visual c++ toolchain shipped starting visual studio 2010 provides framework-level support non-microsoft toolchains. you'll still need provide build files specific compiler, able cleanly integrate result visual studio.

i don't know of cases someone's done though.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -