Presentation is loading. Please wait.

Presentation is loading. Please wait.

SableCC SableCC is developed by professors and graduate students at McGill University and is open source (licensed under the Apache License, Version 2.0)‏

Similar presentations


Presentation on theme: "SableCC SableCC is developed by professors and graduate students at McGill University and is open source (licensed under the Apache License, Version 2.0)‏"— Presentation transcript:

1 SableCC SableCC is developed by professors and graduate students at McGill University and is open source (licensed under the Apache License, Version 2.0)‏

2 SableCC SableCC is a compiler generator that generates compilers in Java, but can also output code in C, C++, C#, and Python. SableCC is written in Java itself and is cross-platform. SableCC has its own format for input grammars.

3 SableCC 1.Target language specification 2.Generation of scanner and parser code in java or desired output language 3.Code for actions to be executed by scanner and parser, possibly modifying their behavior through inheritance. 4.Main program that makes calls to generated compiler classes 5.Compilation of complete compiler

4 SableCC Compilers generated by SableCC build an abstract syntax tree while parsing the code. The AST generated by the compiler matches the concrete syntax tree of the code, but can be modified by classes inheriting from the generated parser class.

5 SableCC Dynamic Linking and cross-platform execution leads to slow execution. SableCC seeks to make Java programs run faster and to gain insight into its execution.

6 SableCC Claim that typical lexer generators limit the usable alphabet to the ASCII character set. SableCC supports Unicode. SableCC allows for a larger alphabet by defining symbols as intervals of charaters and creating an alphabet that just fits the needs. LALR(1) based parser Automatic AST generation

7 SableCC Future additions: –Lookahead for FSA –Improvement to lexer, parser, and debugging –Flexible code generation –Automated error recovery


Download ppt "SableCC SableCC is developed by professors and graduate students at McGill University and is open source (licensed under the Apache License, Version 2.0)‏"

Similar presentations


Ads by Google