build.ck 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*++
  2. Copyright (c) 2017 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. Lex/Parse LALR(1) Library
  9. Abstract:
  10. This module implements support for an LALR(1) grammar parser generator.
  11. Author:
  12. Evan Green 3-Feb-2017
  13. Environment:
  14. Any
  15. --*/
  16. from menv import staticLibrary;
  17. function build() {
  18. var buildLib;
  19. var entries;
  20. var lib;
  21. var sources;
  22. sources = [
  23. "lalr.c",
  24. "lr0.c",
  25. "output.c",
  26. "parcon.c",
  27. "verbose.c",
  28. "yygen.c"
  29. ];
  30. lib = {
  31. "label": "yygen",
  32. "inputs": sources,
  33. };
  34. buildLib = {
  35. "label": "build_yygen",
  36. "output": "yy",
  37. "inputs": sources,
  38. "build": true,
  39. "prefix": "build"
  40. };
  41. entries = staticLibrary(lib);
  42. entries += staticLibrary(buildLib);
  43. return entries;
  44. }