2018-01-14 15:18:50 +01:00
|
|
|
"""
|
|
|
|
Programming Language for 6502/6510 microprocessors, codename 'Sick'
|
|
|
|
This is the code generator for gotos and subroutine calls.
|
|
|
|
|
|
|
|
Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
|
|
|
"""
|
|
|
|
|
|
|
|
from ..plyparse import Goto, SubCall
|
2018-02-03 01:53:07 +01:00
|
|
|
from . import Context
|
2018-01-14 15:18:50 +01:00
|
|
|
|
|
|
|
|
2018-02-03 01:53:07 +01:00
|
|
|
def generate_goto(ctx: Context) -> None:
|
|
|
|
stmt = ctx.stmt
|
|
|
|
assert isinstance(stmt, Goto)
|
2018-01-14 15:18:50 +01:00
|
|
|
pass # @todo
|
|
|
|
|
|
|
|
|
2018-02-03 01:53:07 +01:00
|
|
|
def generate_subcall(ctx: Context) -> None:
|
|
|
|
stmt = ctx.stmt
|
|
|
|
assert isinstance(stmt, SubCall)
|
2018-01-14 15:18:50 +01:00
|
|
|
pass # @todo
|