부모글 보이기/감추기 AD BLOCK 해제 요청 이 글에는 광고가 많이 들어가 있지 않습니다. adblock을 해제하셔도 글을 읽는데 그다지 부담이 없으니 해제를 부탁드립니다. (연관된 글이 1개 있습니다.) BBI 인터프리터 C/C++ 코드를 C#으로 변환 아래 글에 이어, 인터프리터 어휘 분석 프로그램 - C# 예제 ; https://www.sysnet.pe.kr/2/0/10903 인터프리터 - 역폴란드 표기법을 이용한 식의 분석 - C# 예제 ; https://www.sysnet.pe.kr/2/0/10904 인터프리터 - 재귀적 하향 구문 분석 C# 예제 ; https://www.sysnet.pe.kr/2/0/10907 마지막으로, 만들면서 배우는 인터프리터: 컴파일러 이론으로 만드는 나만의 스크립트 언어 ; http://www.yes24.com/24/goods/7858784?scode=032 책의 BBI Interpreter C/C++ 소스 코드를 C#으로 변환한 것을 올립니다. 사용 방법은 다음과 같은 식입니다. static void Main(string[] args) { string text = File.ReadAllText("sample0.txt"); Interpreter bbi = new Interpreter(); bbi.Convert(text); bbi.SyntaxCheck(); bbi.Execute(); } 비주얼 스튜디오에서 디버그 모드로 한줄 한줄 실행해 보면 눈에 들어오실 것입니다. ^^ (첨부한 파일은 소스 코드입니다.) [이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.] [다음 글] .NET Framework: 563. 디버깅 용도로 이진 트리의 내용을 출력하는 방법[이전 글] .NET Framework: 561. null 처리된 객체가 왜 GC에 의해 수집되지 않을까요? [연관 글] 인터프리터 원리가 궁금합니다. [최초 등록일: 3/17/2016] [최종 수정일: 4/12/2024] 이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다. by SeongTae Jeong, mailto:techsharer at outlook.com 비밀번호 댓글 작성자 2016-03-18 08시47분 Sample 파일까지 친절히 넣어주셨네요 ^^좋은 자료 감사합니다!덕분에 인터프리터 약간이라도 이해를 했네요. 김선우 2016-03-18 02시37분 대부분의 C 코드 문법을 C#에 맞게 변환하느라 네이밍 룰이 엉망입니다. ^^; 그래도 분석하기에는 제가 변환한 C# 버전이 더 편안하지 않을까 싶어 올려 봤습니다. ^^ 정성태 2023-04-27 09시14분 ScriptDOM .NET library for T-SQL parsing is now open source; https://techcommunity.microsoft.com/t5/azure-sql-blog/scriptdom-net-library-for-t-sql-parsing-is-now-open-source/ba-p/3804284-------------------------------AZHenley/teenytinycompiler; https://github.com/AZHenley/teenytinycompilerLet's make a Teeny Tiny compiler, part 1; https://austinhenley.com/blog/teenytinycompiler1.htmlLet's make a Teeny Tiny compiler, part 2; https://austinhenley.com/blog/teenytinycompiler2.htmlLet's make a Teeny Tiny compiler, part 3; https://austinhenley.com/blog/teenytinycompiler3.html 정성태 ... 181 182 183 184 185 186 187 188 [189] 190 191 192 193 194 195 ... NoWriterDateCnt.TitleFile(s) 228정성태4/13/200615895Team Foundation Server: 3. MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build.227정성태4/13/200617460Team Foundation Server: 2. TFS 빌드 오류 유형 - MSBUILD: warning : Specified cast is not valid226정성태4/13/200615444Team Foundation Server: 1. TFS 오류 유형 - TF50608: Unable to retrieve information for security object225정성태10/17/200615020.NET Framework: 67. VS.NET 2005 도구 상자에 있는 Workflow Activity 항목의 아이콘 변경223정성태4/13/200626273.NET Framework: 66. Microsoft .NET Framework 2.0 Configuration 수동 설치1224정성태4/13/200619823 .NET Framework: 66.1. "Microsoft .NET Framework 2.0 Configuration" MSI 설치 파일 버전1222정성태4/13/200618782.NET Framework: 65. VS.NET 2005: 파일 기반 웹 프로젝트의 "Virtual Path" 제거220정성태4/13/200616570.NET Framework: 64. ClickOnce - 배포 시 오류 : "Error: An unexpected error occurred -- The parameter is incorrect."219정성태4/13/200631385.NET Framework: 63. ClickOnce - 최초 실행 시 보안 경고창 없애는 방법 [1]216정성태4/13/200618437스크립트: 8. 3월 1일 ActiveX Patch 적용 후, JS 로 수정한 임베딩 컨트롤이 여전히 비활성화 되는 문제 [2]215정성태4/13/200619763.NET Framework: 62. ASP.NET 웹 컨트롤 렌더링 가로채기214정성태4/13/200619097.NET Framework: 61. DateTime - DateTime = 사이의 "Month" 수 계산 [2]213정성태4/13/200621401.NET Framework: 60. localhost 이외의 컴퓨터에서 asmx 테스트 페이지 호출 [1]218정성태4/13/200619736 .NET Framework: 60.1. asmx 테스트 페이지를 보여주고 싶지 않을 때211정성태4/13/200617634VS.NET IDE: 38. VS.NET 2005 - "Export Template" 메뉴210정성태4/13/200617124.NET Framework: 59. EXE 참조 가능 - VS.NET 2005 [2]209정성태4/13/200616571스크립트: 7. 4월 12일 ActiveX 패치 문제를 해결할 수 있는 가장 간단한 방법 [6]1208정성태10/21/200616338Windows: 1. 성태도 ^^ Vista 설치 해봤습니다.212정성태10/20/200615912 Windows: 1.1. Vista 에서 WinFX 런타임 구동207정성태4/13/200624860VC++: 23. VC++ RGS 파일에 사용자 정의 파라미터 추가205정성태4/13/200621930VS.NET IDE: 37. devenv.exe를 이용한 Command Line 컴파일 [1]204정성태5/8/200617161웹: 2. Server Unavailable - Server Application Unavailable203정성태4/13/200615979웹: 1. IIS 설정 옵션: Verify(Check) that file exists202정성태4/13/200615664VS.NET IDE: 36. Automatically synchronize with an Internet time server201정성태4/13/200618734기타: 12. XMLHTTP Failure and SUS Admin200정성태4/13/200618081.NET Framework: 58. 웹 서비스 메서드 호출 오류 유형 - text/html; charset=xxx, but expected 'text/xml' ... 181 182 183 184 185 186 187 188 [189] 190 191 192 193 194 195 ...