Coder Social home page Coder Social logo

cpp-tutor / dbasic Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 263 KB

Modern implementation of the original Dartmouth BASIC compilers in the D programming language

License: MIT License

D 84.56% Yacc 6.62% Makefile 0.26% C 7.98% Shell 0.16% Batchfile 0.41%
basic compiler d-language dartmouth llvm-ir

dbasic's People

Contributors

cpp-tutor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dbasic's Issues

0.92.0: compile error

  • BG: Arch Linux + gcc-d-13.2.1-3 ldc-3:1.34.0-1

  • Makefile

make   
gdc -Wall --release -O -c LexerImpl.d
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/format/internal/write.d:143:13: Error:no property ‘yycode_’ for type ‘Parser.Parser.SymbolKind’
  143 |     U val = obj;    // Extracting alias this may be impure/system/may-throw
      |             ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/format/write.d:1239:20: Error:template instance ‘std.format.internal.write.formatValueImpl!(LockingTextWriter, SymbolKind, char)’ error instantiating
 1239 |     formatValueImpl(w, val, f);
      |                    ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/format/write.d:632:28: Note:instantiated from here: ‘formatValue!(LockingTextWriter, SymbolKind, char)’
  632 |                 formatValue(w, args[i], spec);
      |                            ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/stdio.d:1723:35: 附注:instantiated from here: ‘formattedWrite!(LockingTextWriter, char, SymbolKind)’
 1723 |                     formattedWrite(w, "%s", arg);
      |                                   ^
LexerImpl.d:191:29: Note:instantiated from here: ‘write!(string, SymbolKind)’
  191 |                 stderr.write((i == 0 ? "(EXPECTED " : " OR "), arg[i]);
      |                             ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/stdio.d:1769:14: 错误:template instance ‘std.stdio.File.write!(string, SymbolKind, string, char)’ error instantiating
 1769 |         write(args, '\n');
      |              ^
LexerImpl.d:195:23: Note:instantiated from here: ‘writeln!(string, SymbolKind, string)’
  195 |         stderr.writeln(" INSTEAD OF ", lookahead, ")");
      |                       ^
make: *** [Makefile:16:LexerImpl.o] Error 1
  • Makefile.llvm
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/format/internal/write.d:143:13: Error:no property ‘yycode_’ for type ‘Parser.Parser.SymbolKind’
  143 |     U val = obj;    // Extracting alias this may be impure/system/may-throw
      |             ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/format/write.d:1239:20: Error:template instance ‘std.format.internal.write.formatValueImpl!(LockingTextWriter, SymbolKind, char)’ error instantiating
 1239 |     formatValueImpl(w, val, f);
      |                    ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/format/write.d:632:28: Note:instantiated from here: ‘formatValue!(LockingTextWriter, SymbolKind, char)’
  632 |                 formatValue(w, args[i], spec);
      |                            ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/stdio.d:1723:35: Note:instantiated from here: ‘formattedWrite!(LockingTextWriter, char, SymbolKind)’
 1723 |                     formattedWrite(w, "%s", arg);
      |                                   ^
LexerImpl.d:191:29: Note:instantiated from here: ‘write!(string, SymbolKind)’
  191 |                 stderr.write((i == 0 ? "(EXPECTED " : " OR "), arg[i]);
      |                             ^
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/d/std/stdio.d:1769:14: 错误:template instance ‘std.stdio.File.write!(string, SymbolKind, string, char)’ error instantiating
 1769 |         write(args, '\n');
      |              ^
LexerImpl.d:195:23: Note:instantiated from here: ‘writeln!(string, SymbolKind, string)’
  195 |         stderr.writeln(" INSTEAD OF ", lookahead, ")");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.